MCPcopy Create free account
hub / github.com/Snapchat/KeyDB / rewriteConfigNotifykeyspaceeventsOption

Function rewriteConfigNotifykeyspaceeventsOption

src/config.cpp:1720–1731  ·  view source on GitHub ↗

Rewrite the notify-keyspace-events option. */

Source from the content-addressed store, hash-verified

1718
1719/* Rewrite the notify-keyspace-events option. */
1720void 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. */
1734void rewriteConfigClientoutputbufferlimitOption(struct rewriteConfigState *state) {

Callers 1

rewriteConfigFunction · 0.85

Calls 7

sdsnewFunction · 0.85
sdscatlenFunction · 0.85
sdscatreprFunction · 0.85
sdslenFunction · 0.85
sdsfreeFunction · 0.85
rewriteConfigRewriteLineFunction · 0.85

Tested by

no test coverage detected