summaryrefslogtreecommitdiff
path: root/src/cluster.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cluster.c')
-rw-r--r--src/cluster.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/cluster.c b/src/cluster.c
index ba21024be..b7bfedad3 100644
--- a/src/cluster.c
+++ b/src/cluster.c
@@ -1740,7 +1740,7 @@ void clusterUpdateSlotsConfigWith(clusterNode *sender, uint64_t senderConfigEpoc
}
/* When this function is called, there is a packet to process starting
- * at node->rcvbuf. Releasing the buffer is up to the caller, so this
+ * at link->rcvbuf. Releasing the buffer is up to the caller, so this
* function should just handle the higher level stuff of processing the
* packet, modifying the cluster state if needed.
*
@@ -2499,7 +2499,8 @@ void clusterBuildMessageHdr(clusterMsg *hdr, int type) {
totlen += sizeof(clusterMsgDataUpdate);
}
hdr->totlen = htonl(totlen);
- /* For PING, PONG, and MEET, fixing the totlen field is up to the caller. */
+ /* For PING, PONG, MEET and other variable length messages fixing the
+ * totlen field is up to the caller. */
}
/* Return non zero if the node is already present in the gossip section of the
@@ -2650,7 +2651,7 @@ void clusterSendPing(clusterLink *link, int type) {
dictReleaseIterator(di);
}
- /* Ready to send... fix the totlen fiend and queue the message in the
+ /* Ready to send... fix the totlen field and queue the message in the
* output buffer. */
totlen = sizeof(clusterMsg)-sizeof(union clusterMsgData);
totlen += (sizeof(clusterMsgDataGossip)*gossipcount);
@@ -3438,7 +3439,7 @@ void clusterHandleSlaveMigration(int max_slaves) {
* the PAUSED flag, so that the slave will set mf_master_offset when receiving
* a packet from the master with this flag set.
*
- * The gaol of the manual failover is to perform a fast failover without
+ * The goal of the manual failover is to perform a fast failover without
* data loss due to the asynchronous master-slave replication.
* -------------------------------------------------------------------------- */