]> git.saurik.com Git - redis.git/blobdiff - src/replication.c
Tests for the interactive mode of redis-cli
[redis.git] / src / replication.c
index ecb04ce1a065dd1b65f3474f0b1ec6c2360c6e8a..5387db913cc39719bc820a0d066e0c326fc6fca5 100644 (file)
@@ -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));