From 61a2aa0e081e56595212f702ebafe59d9884a090 Mon Sep 17 00:00:00 2001 From: xindoo Date: Tue, 1 Sep 2020 19:24:59 +0800 Subject: [PATCH] Correct errors in code comments --- src/cluster.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/cluster.c b/src/cluster.c index ba0ada04a..ff580cb90 100644 --- a/src/cluster.c +++ b/src/cluster.c @@ -547,10 +547,10 @@ void clusterInit(void) { * 1) All other nodes are forget. * 2) All the assigned / open slots are released. * 3) If the node is a slave, it turns into a master. - * 5) Only for hard reset: a new Node ID is generated. - * 6) Only for hard reset: currentEpoch and configEpoch are set to 0. - * 7) The new configuration is saved and the cluster state updated. - * 8) If the node was a slave, the whole data set is flushed away. */ + * 4) Only for hard reset: a new Node ID is generated. + * 5) Only for hard reset: currentEpoch and configEpoch are set to 0. + * 6) The new configuration is saved and the cluster state updated. + * 7) If the node was a slave, the whole data set is flushed away. */ void clusterReset(int hard) { dictIterator *di; dictEntry *de;