Unverified Commit aba61d9e authored by guybe7's avatar guybe7 Committed by GitHub
Browse files

XTRIM should take at least 4 args (#8549)

Fix command arity.
Other than key name it must at least take the trimming strategy and it's limit
parent 965356ae
...@@ -1070,7 +1070,7 @@ struct redisCommand redisCommandTable[] = { ...@@ -1070,7 +1070,7 @@ struct redisCommand redisCommandTable[] = {
"write fast @stream", "write fast @stream",
0,NULL,1,1,1,0,0,0}, 0,NULL,1,1,1,0,0,0},
{"xtrim",xtrimCommand,-2, {"xtrim",xtrimCommand,-4,
"write random @stream", "write random @stream",
0,NULL,1,1,1,0,0,0}, 0,NULL,1,1,1,0,0,0},
......
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