]> git.saurik.com Git - redis.git/commitdiff
a few redis-cli format specified fixed
authorantirez <antirez@gmail.com>
Sat, 5 Dec 2009 13:26:05 +0000 (14:26 +0100)
committerantirez <antirez@gmail.com>
Sat, 5 Dec 2009 13:26:05 +0000 (14:26 +0100)
TODO
redis-cli.c

diff --git a/TODO b/TODO
index f3beb6aa281f297c354f420b60424d34688f265e..42e126dfd1feb7da83248b87b151d68607977594 100644 (file)
--- a/TODO
+++ b/TODO
@@ -49,6 +49,7 @@ SHORT/LONG TERM RANDOM TODO ITEMS
 Most of this can be seen just as proposals, the fact they are in this list
 it's not a guarantee they'll ever get implemented ;)
 
+* Move dict.c from hash table to skip list, in order to avoid the blocking resize operation needed for the hash table.
 * FORK command (fork()s executing the commands received by the current
   client in the new process). Hint: large SORTs can use more cores,
   copy-on-write will avoid memory problems.
index eef85f2453f642737c1a2883bc255f8f389b56ff..bcef3c1e6800686b4ca519e50fc5e81917ae2164 100644 (file)
@@ -311,7 +311,7 @@ static int cliSendCommand(int argc, char **argv) {
         if (rc->flags & REDIS_CMD_MULTIBULK) {
             cmd = sdscatprintf(cmd,"*%d\r\n",argc);
             for (j = 0; j < argc; j++) {
-                cmd = sdscatprintf(cmd,"$%d\r\n",sdslen(argv[j]));
+                cmd = sdscatprintf(cmd,"$%lu\r\n",sdslen(argv[j]));
                 cmd = sdscatlen(cmd,argv[j],sdslen(argv[j]));
                 cmd = sdscatlen(cmd,"\r\n",2);
             }
@@ -319,7 +319,7 @@ static int cliSendCommand(int argc, char **argv) {
             for (j = 0; j < argc; j++) {
                 if (j != 0) cmd = sdscat(cmd," ");
                 if (j == argc-1 && rc->flags & REDIS_CMD_BULK) {
-                    cmd = sdscatprintf(cmd,"%d",sdslen(argv[j]));
+                    cmd = sdscatprintf(cmd,"%lu",sdslen(argv[j]));
                 } else {
                     cmd = sdscatlen(cmd,argv[j],sdslen(argv[j]));
                 }