Rewrite the notify-keyspace-events option. */
| 1718 | |
| 1719 | /* Rewrite the notify-keyspace-events option. */ |
| 1720 | void rewriteConfigNotifykeyspaceeventsOption(struct rewriteConfigState *state) { |
| 1721 | int force = g_pserver->notify_keyspace_events != 0; |
| 1722 | const char *option = "notify-keyspace-events"; |
| 1723 | sds line, flags; |
| 1724 | |
| 1725 | flags = keyspaceEventsFlagsToString(g_pserver->notify_keyspace_events); |
| 1726 | line = sdsnew(option); |
| 1727 | line = sdscatlen(line, " ", 1); |
| 1728 | line = sdscatrepr(line, flags, sdslen(flags)); |
| 1729 | sdsfree(flags); |
| 1730 | rewriteConfigRewriteLine(state,option,line,force); |
| 1731 | } |
| 1732 | |
| 1733 | /* Rewrite the client-output-buffer-limit option. */ |
| 1734 | void rewriteConfigClientoutputbufferlimitOption(struct rewriteConfigState *state) { |
no test coverage detected