Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
c590e18d
Commit
c590e18d
authored
May 15, 2013
by
antirez
Browse files
CONFIG REWRITE: correctly escape the notify-keyspace-events option.
parent
32884384
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/config.c
View file @
c590e18d
...
...
@@ -1381,7 +1381,9 @@ void rewriteConfigNotifykeyspaceeventsOption(struct rewriteConfigState *state) {
sds line, flags;
flags = keyspaceEventsFlagsToString(server.notify_keyspace_events);
line
=
sdscatprintf
(
sdsempty
(),
"%s %s"
,
option
,
flags
);
line = sdsnew(option);
line = sdscatlen(line, " ", 1);
line = sdscatrepr(line, flags, sdslen(flags));
sdsfree(flags);
rewriteConfigRewriteLine(state,option,line,force);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment