]> git.saurik.com Git - redis.git/commitdiff
SLAVEOF is not a write command.
authorantirez <antirez@gmail.com>
Wed, 4 Apr 2012 13:11:30 +0000 (15:11 +0200)
committerantirez <antirez@gmail.com>
Wed, 4 Apr 2012 13:11:30 +0000 (15:11 +0200)
src/redis.c

index b263c0abea3d26d92df3533883b4f79e3c176939..e8d89a986073487d772bd93c2351170a338f8a1d 100644 (file)
@@ -222,7 +222,7 @@ struct redisCommand redisCommandTable[] = {
     {"ttl",ttlCommand,2,"r",0,NULL,1,1,1,0,0},
     {"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},
+    {"slaveof",slaveofCommand,3,"as",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},