From 7cfdccd94e873c1f350b111332c0cb66b1e65f43 Mon Sep 17 00:00:00 2001 From: antirez Date: Tue, 17 Nov 2015 15:40:47 +0100 Subject: [PATCH] Remove "s" flag for MIGRATE in command table. Maybe there are legitimate use cases for MIGRATE inside Lua scripts, at least for now. When the command will be executed in an asynchronous fashion (planned) it is possible we'll no longer be able to permit it from within Lua scripts. --- src/server.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server.c b/src/server.c index c63f7587..78d1e0fe 100644 --- a/src/server.c +++ b/src/server.c @@ -265,7 +265,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,"ws",0,NULL,3,3,1,0,0}, + {"migrate",migrateCommand,-6,"w",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},