diff --git a/src/cluster_legacy.c b/src/cluster_legacy.c index 2555f9508..32efd2b24 100644 --- a/src/cluster_legacy.c +++ b/src/cluster_legacy.c @@ -2602,7 +2602,7 @@ uint32_t writePingExt(clusterMsg *hdr, int gossipcount) { totlen += getShardIdPingExtSize(); extensions++; - /* Populate insternal secret */ + /* Populate internal secret */ if (cursor != NULL) { clusterMsgPingExtInternalSecret *ext = preparePingExt(cursor, CLUSTERMSG_EXT_TYPE_INTERNALSECRET, getInternalSecretPingExtSize()); memcpy(ext->internal_secret, server.cluster->internal_secret, CLUSTER_INTERNALSECRETLEN); diff --git a/src/cluster_legacy.h b/src/cluster_legacy.h index 730746657..4907ea0e2 100644 --- a/src/cluster_legacy.h +++ b/src/cluster_legacy.h @@ -231,7 +231,7 @@ typedef struct { uint16_t ver; /* Protocol version, currently set to 1. */ uint16_t port; /* Primary port number (TCP or TLS). */ uint16_t type; /* Message type */ - uint16_t count; /* Only used for some kind of messages. */ + uint16_t count; /* Only used for some kinds of messages. */ uint64_t currentEpoch; /* The epoch accordingly to the sending node. */ uint64_t configEpoch; /* The config epoch if it's a master, or the last epoch advertised by its master if it is a @@ -258,8 +258,8 @@ typedef struct { * especially during cluster rolling upgrades. * * Therefore, fields in this struct should remain at the same offset from - * release to release. The static asserts below ensures that incompatible - * changes in clusterMsg be caught at compile time. + * release to release. The static asserts below ensure that incompatible + * changes in clusterMsg are caught at compile time. */ static_assert(offsetof(clusterMsg, sig) == 0, "unexpected field offset");