]> git.saurik.com Git - redis.git/commitdiff
DEBUG should not be flagged as w otherwise we can not call DEBUG DIGEST and other...
authorantirez <antirez@gmail.com>
Tue, 20 Mar 2012 16:53:47 +0000 (17:53 +0100)
committerantirez <antirez@gmail.com>
Tue, 20 Mar 2012 16:53:47 +0000 (17:53 +0100)
src/redis.c
tests/support/redis.tcl

index 737613d8393305882a68d699154deb1b45af3fc7..2558f66ae9a85340681e4e178910f3bfc4edf604 100644 (file)
@@ -223,7 +223,7 @@ struct redisCommand redisCommandTable[] = {
     {"pttl",pttlCommand,2,"r",0,NULL,1,1,1,0,0},
     {"persist",persistCommand,2,"w",0,NULL,1,1,1,0,0},
     {"slaveof",slaveofCommand,3,"aws",0,NULL,0,0,0,0,0},
-    {"debug",debugCommand,-2,"aws",0,NULL,0,0,0,0,0},
+    {"debug",debugCommand,-2,"as",0,NULL,0,0,0,0,0},
     {"config",configCommand,-2,"ar",0,NULL,0,0,0,0,0},
     {"subscribe",subscribeCommand,-2,"rps",0,NULL,0,0,0,0,0},
     {"unsubscribe",unsubscribeCommand,-1,"rps",0,NULL,0,0,0,0,0},
index 4f8ac485dc69ffb29127927f8280c1a874cad4ec..ca6cf34b601eb83d57b66415e5cd71779c518491 100644 (file)
@@ -160,7 +160,7 @@ proc ::redis::redis_read_reply fd {
         - {return -code error [redis_read_line $fd]}
         $ {redis_bulk_read $fd}
         * {redis_multi_bulk_read $fd}
-        default {return -code error "Bad protocol, $type as reply type byte"}
+        default {return -code error "Bad protocol, '$type' as reply type byte"}
     }
 }