Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed MONITOR output for consistency: now integer encoded values are …

…also formatted like this: "3932"
  • Loading branch information...
commit f9231c2c9a0ebc890f3304af924c9112265ec145 1 parent c7543ab
@antirez authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  redis.c
View
2  redis.c
@@ -2555,7 +2555,7 @@ static void replicationFeedMonitors(list *monitors, int dictid, robj **argv, int
for (j = 0; j < argc; j++) {
if (argv[j]->encoding == REDIS_ENCODING_INT) {
- cmdrepr = sdscatprintf(cmdrepr, "%ld", (long)argv[j]->ptr);
+ cmdrepr = sdscatprintf(cmdrepr, "\"%ld\"", (long)argv[j]->ptr);
} else {
cmdrepr = sdscatrepr(cmdrepr,(char*)argv[j]->ptr,
sdslen(argv[j]->ptr));
Please sign in to comment.
Something went wrong with that request. Please try again.