summaryrefslogtreecommitdiff
path: root/src/commands/cluster-bumpepoch.json
blob: 786723c5c2b6bf317e901047c6657852b56b1235 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
{
    "BUMPEPOCH": {
        "summary": "Advances the cluster config epoch.",
        "complexity": "O(1)",
        "group": "cluster",
        "since": "3.0.0",
        "arity": 2,
        "container": "CLUSTER",
        "function": "clusterCommand",
        "command_flags": [
            "NO_ASYNC_LOADING",
            "ADMIN",
            "STALE"
        ],
        "command_tips": [
            "NONDETERMINISTIC_OUTPUT"
        ],
        "reply_schema": {
            "oneOf": [
                {
                    "description": "if the epoch was incremented",
                    "type": "string",
                    "pattern": "^BUMPED [0-9]*$"
                },
                {
                    "description": "if the node already has the greatest config epoch in the cluster",
                    "type": "string",
                    "pattern": "^STILL [0-9]*$"
                }
            ]
        }
    }
}