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
This commit is contained in:
guybe7 2021-02-24 15:41:00 +01:00 committed by GitHub
parent 965356ae63
commit aba61d9ebd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1070,7 +1070,7 @@ struct redisCommand redisCommandTable[] = {
"write fast @stream",
0,NULL,1,1,1,0,0,0},
{"xtrim",xtrimCommand,-2,
{"xtrim",xtrimCommand,-4,
"write random @stream",
0,NULL,1,1,1,0,0,0},