Commit ee682c4c authored by antirez's avatar antirez
Browse files

Mark PFDEBUG as write command in the commands table.

It is safer since it is able to have side effects.
parent 9ef8ef41
...@@ -265,7 +265,7 @@ struct redisCommand redisCommandTable[] = { ...@@ -265,7 +265,7 @@ struct redisCommand redisCommandTable[] = {
{"pfadd",pfaddCommand,-2,"wm",0,NULL,1,1,1,0,0}, {"pfadd",pfaddCommand,-2,"wm",0,NULL,1,1,1,0,0},
{"pfcount",pfcountCommand,2,"w",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}, {"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 ============================ */ /*============================ Utility functions ============================ */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment