Unverified Commit 4c13945c authored by valentinogeron's avatar valentinogeron Committed by GitHub
Browse files

Fix PFDEBUG commands flag (#8222)

- Mark it as a @hyperloglog command (ACL)
- Should not be allowed in OOM
- Add firstkey, lastkey, step
- Add comment that explains the 'write' flag
parent 51eb0da8
...@@ -975,9 +975,12 @@ struct redisCommand redisCommandTable[] = { ...@@ -975,9 +975,12 @@ struct redisCommand redisCommandTable[] = {
"write use-memory @hyperloglog", "write use-memory @hyperloglog",
0,NULL,1,-1,1,0,0,0}, 0,NULL,1,-1,1,0,0,0},
/* Unlike PFCOUNT that is considered as a read-only command (although
* it changes a bit), PFDEBUG may change the entire key when converting
* from sparse to dense representation */
{"pfdebug",pfdebugCommand,-3, {"pfdebug",pfdebugCommand,-3,
"admin write", "admin write use-memory @hyperloglog",
0,NULL,0,0,0,0,0,0}, 0,NULL,2,2,1,0,0,0},
{"xadd",xaddCommand,-5, {"xadd",xaddCommand,-5,
"write use-memory fast random @stream", "write use-memory fast random @stream",
......
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