From ee682c4c48baa6d6d35081355bc10c425eb6e87e Mon Sep 17 00:00:00 2001 From: antirez Date: Mon, 14 Apr 2014 15:57:50 +0200 Subject: [PATCH] Mark PFDEBUG as write command in the commands table. It is safer since it is able to have side effects. --- src/redis.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/redis.c b/src/redis.c index 8d150611..8a74350b 100644 --- a/src/redis.c +++ b/src/redis.c @@ -265,7 +265,7 @@ struct redisCommand redisCommandTable[] = { {"pfadd",pfaddCommand,-2,"wm",0,NULL,1,1,1,0,0}, {"pfcount",pfcountCommand,2,"w",0,NULL,1,1,1,0,0}, {"pfmerge",pfmergeCommand,-2,"wm",0,NULL,1,-1,1,0,0}, - {"pfdebug",pfdebugCommand,-3,"r",0,NULL,0,0,0,0,0} + {"pfdebug",pfdebugCommand,-3,"w",0,NULL,0,0,0,0,0} }; /*============================ Utility functions ============================ */