mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-23 00:28:26 -05:00
Cluster: add currentEpoch to CLUSTER INFO.
This commit is contained in:
parent
6ec795d2cf
commit
32b5410af9
@ -2393,13 +2393,15 @@ void clusterCommand(redisClient *c) {
|
||||
"cluster_slots_fail:%d\r\n"
|
||||
"cluster_known_nodes:%lu\r\n"
|
||||
"cluster_size:%d\r\n"
|
||||
"cluster_current_epoch:%llu\r\n"
|
||||
, statestr[server.cluster->state],
|
||||
slots_assigned,
|
||||
slots_ok,
|
||||
slots_pfail,
|
||||
slots_fail,
|
||||
dictSize(server.cluster->nodes),
|
||||
server.cluster->size
|
||||
server.cluster->size,
|
||||
(unsigned long long) server.cluster->currentEpoch
|
||||
);
|
||||
addReplySds(c,sdscatprintf(sdsempty(),"$%lu\r\n",
|
||||
(unsigned long)sdslen(info)));
|
||||
|
Loading…
Reference in New Issue
Block a user