From d4f55990f863928464cebb2052f698e4d4056acb Mon Sep 17 00:00:00 2001 From: antirez Date: Tue, 17 Nov 2015 15:33:09 +0100 Subject: [PATCH] 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. --- src/redis.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/redis.c b/src/redis.c index 62694c14..89f51773 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},