summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2015-11-17 15:33:09 +0100
committerantirez <antirez@gmail.com>2015-11-17 15:35:47 +0100
commitd4f55990f863928464cebb2052f698e4d4056acb (patch)
treeafe99b925f528ff080e38fabd46fafe124c9ef34
parent28fb193ccdc59a6baf6738afc6525a75f07bdce7 (diff)
downloadredis-d4f55990f863928464cebb2052f698e4d4056acb.tar.gz
Fix MIGRATE entry in command table.
Thanks to Oran Agra (@oranagra) for reporting. Key extraction would not work otherwise and it does not make sense to take wrong data in the command table.
-rw-r--r--src/redis.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/redis.c b/src/redis.c
index 62694c14b..89f51773d 100644
--- a/src/redis.c
+++ b/src/redis.c
@@ -261,7 +261,7 @@ struct redisCommand redisCommandTable[] = {
{"cluster",clusterCommand,-2,"ar",0,NULL,0,0,0,0,0},
{"restore",restoreCommand,-4,"wm",0,NULL,1,1,1,0,0},
{"restore-asking",restoreCommand,-4,"wmk",0,NULL,1,1,1,0,0},
- {"migrate",migrateCommand,-6,"w",0,NULL,0,0,0,0,0},
+ {"migrate",migrateCommand,-6,"ws",0,NULL,3,3,1,0,0},
{"asking",askingCommand,1,"r",0,NULL,0,0,0,0,0},
{"readonly",readonlyCommand,1,"rF",0,NULL,0,0,0,0,0},
{"readwrite",readwriteCommand,1,"rF",0,NULL,0,0,0,0,0},