mirror of
https://github.com/fluencelabs/redis
synced 2025-06-24 14:31:34 +00:00
Fixed MONITOR output for consistency: now integer encoded values are also formatted like this: "3932"
This commit is contained in:
2
redis.c
2
redis.c
@ -2555,7 +2555,7 @@ static void replicationFeedMonitors(list *monitors, int dictid, robj **argv, int
|
|||||||
|
|
||||||
for (j = 0; j < argc; j++) {
|
for (j = 0; j < argc; j++) {
|
||||||
if (argv[j]->encoding == REDIS_ENCODING_INT) {
|
if (argv[j]->encoding == REDIS_ENCODING_INT) {
|
||||||
cmdrepr = sdscatprintf(cmdrepr, "%ld", (long)argv[j]->ptr);
|
cmdrepr = sdscatprintf(cmdrepr, "\"%ld\"", (long)argv[j]->ptr);
|
||||||
} else {
|
} else {
|
||||||
cmdrepr = sdscatrepr(cmdrepr,(char*)argv[j]->ptr,
|
cmdrepr = sdscatrepr(cmdrepr,(char*)argv[j]->ptr,
|
||||||
sdslen(argv[j]->ptr));
|
sdslen(argv[j]->ptr));
|
||||||
|
Reference in New Issue
Block a user