Commit 5fa7d9a2 authored by knggk's avatar knggk Committed by Oran Agra
Browse files

Add minimum version information to new xsetid arguments (#11694)

the metadata for the new arguments of XSETID,
entries-added and max-deleted-id, which have been added
in Redis 7.0 was missing.

(cherry picked from commit 44c67703)
parent 3e82bdf7
...@@ -6649,8 +6649,8 @@ commandHistory XSETID_History[] = { ...@@ -6649,8 +6649,8 @@ commandHistory XSETID_History[] = {
struct redisCommandArg XSETID_Args[] = { struct redisCommandArg XSETID_Args[] = {
{"key",ARG_TYPE_KEY,0,NULL,NULL,NULL,CMD_ARG_NONE}, {"key",ARG_TYPE_KEY,0,NULL,NULL,NULL,CMD_ARG_NONE},
{"last-id",ARG_TYPE_STRING,-1,NULL,NULL,NULL,CMD_ARG_NONE}, {"last-id",ARG_TYPE_STRING,-1,NULL,NULL,NULL,CMD_ARG_NONE},
{"entries_added",ARG_TYPE_INTEGER,-1,"ENTRIESADDED",NULL,NULL,CMD_ARG_OPTIONAL}, {"entries_added",ARG_TYPE_INTEGER,-1,"ENTRIESADDED",NULL,"7.0.0",CMD_ARG_OPTIONAL},
{"max_deleted_entry_id",ARG_TYPE_STRING,-1,"MAXDELETEDID",NULL,NULL,CMD_ARG_OPTIONAL}, {"max_deleted_entry_id",ARG_TYPE_STRING,-1,"MAXDELETEDID",NULL,"7.0.0",CMD_ARG_OPTIONAL},
{0} {0}
}; };
......
...@@ -54,13 +54,15 @@ ...@@ -54,13 +54,15 @@
"name": "entries_added", "name": "entries_added",
"token": "ENTRIESADDED", "token": "ENTRIESADDED",
"type": "integer", "type": "integer",
"optional": true "optional": true,
"since": "7.0.0"
}, },
{ {
"name": "max_deleted_entry_id", "name": "max_deleted_entry_id",
"token": "MAXDELETEDID", "token": "MAXDELETEDID",
"type": "string", "type": "string",
"optional": true "optional": true,
"since": "7.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