mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-22 08:08:53 -05:00
Fixed MONITOR output for consistency: now integer encoded values are also formatted like this: "3932"
This commit is contained in:
parent
5bd09cd4c5
commit
d3b958c3fc
@ -91,7 +91,7 @@ void replicationFeedMonitors(list *monitors, int dictid, robj **argv, int argc)
|
||||
|
||||
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));
|
||||
|
Loading…
Reference in New Issue
Block a user