summaryrefslogtreecommitdiff
path: root/examples/redis-unstable/src/commands/cluster-syncslots.json
diff options
context:
space:
mode:
Diffstat (limited to 'examples/redis-unstable/src/commands/cluster-syncslots.json')
-rw-r--r--examples/redis-unstable/src/commands/cluster-syncslots.json117
1 files changed, 117 insertions, 0 deletions
diff --git a/examples/redis-unstable/src/commands/cluster-syncslots.json b/examples/redis-unstable/src/commands/cluster-syncslots.json
new file mode 100644
index 0000000..9ea8c76
--- /dev/null
+++ b/examples/redis-unstable/src/commands/cluster-syncslots.json
@@ -0,0 +1,117 @@
+{
+ "SYNCSLOTS": {
+ "summary": "Internal command for atomic slot migration protocol between cluster nodes.",
+ "complexity": "O(1)",
+ "group": "cluster",
+ "since": "8.4.0",
+ "arity": -3,
+ "container": "CLUSTER",
+ "function": "clusterCommand",
+ "command_flags": [
+ "NO_ASYNC_LOADING",
+ "ADMIN",
+ "STALE"
+ ],
+ "command_tips": [
+ "NONDETERMINISTIC_OUTPUT"
+ ],
+ "arguments": [
+ {
+ "name": "subcommand",
+ "type": "oneof",
+ "arguments": [
+ {
+ "name": "sync",
+ "token": "SYNC",
+ "type": "block",
+ "arguments": [
+ {
+ "name": "task-id",
+ "type": "string"
+ },
+ {
+ "name": "slot-range",
+ "type": "block",
+ "multiple": true,
+ "arguments": [
+ {
+ "name": "start-slot",
+ "type": "integer"
+ },
+ {
+ "name": "end-slot",
+ "type": "integer"
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "token": "RDBCHANNEL",
+ "name": "task-id",
+ "type": "string"
+ },
+ {
+ "name": "snapshot-eof",
+ "token": "SNAPSHOT-EOF",
+ "type": "pure-token"
+ },
+ {
+ "name": "stream-eof",
+ "token": "STREAM-EOF",
+ "type": "pure-token"
+ },
+ {
+ "name": "ack",
+ "token": "ACK",
+ "type": "block",
+ "arguments": [
+ {
+ "name": "state",
+ "type": "string"
+ },
+ {
+ "name": "offset",
+ "type": "integer"
+ }
+ ]
+ },
+ {
+ "token": "FAIL",
+ "name": "error",
+ "type": "string"
+ },
+ {
+ "name": "conf",
+ "token": "CONF",
+ "type": "block",
+ "arguments": [
+ {
+ "name": "option",
+ "type": "string",
+ "multiple": true
+ },
+ {
+ "name": "value",
+ "type": "string",
+ "multiple": true
+ }
+ ]
+ }
+ ]
+ }
+ ],
+ "reply_schema": {
+ "oneOf": [
+ {
+ "description": "Reply to CLUSTER SYNCSLOTS SYNC, returns special RDB channel sync response.",
+ "const": "RDBCHANNELSYNCSLOTS"
+ },
+ {
+ "description": "Reply to CLUSTER SYNCSLOTS CONF and other subcommands.",
+ "const": "OK"
+ }
+ ]
+ }
+ }
+}