summaryrefslogtreecommitdiff
path: root/src/cluster.c
diff options
context:
space:
mode:
authorBinbin <binloveplay1314@qq.com>2022-10-02 18:56:45 +0800
committerGitHub <noreply@github.com>2022-10-02 13:56:45 +0300
commit3c02d1acc499bf5391d904924219450f0ff2d45a (patch)
tree8540b35cc06de7498d1da5ed693bbde81283b670 /src/cluster.c
parent2804eefc58be6bfe3657e64cf3bdadd59549464a (diff)
downloadredis-3c02d1acc499bf5391d904924219450f0ff2d45a.tar.gz
code, typo and comment cleanups (#11280)
- fix `the the` typo - `LPOPRPUSH` does not exist, should be `RPOPLPUSH` - `CLUSTER GETKEYINSLOT` 's time complexity should be O(N) - `there bytes` should be `three bytes`, this closes #11266 - `slave` word to `replica` in log, modified the front and missed the back - remove useless aofReadDiffFromParent in server.h - `trackingHandlePendingKeyInvalidations` method adds a void parameter
Diffstat (limited to 'src/cluster.c')
-rw-r--r--src/cluster.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cluster.c b/src/cluster.c
index 94c0d131d..c788194f1 100644
--- a/src/cluster.c
+++ b/src/cluster.c
@@ -848,7 +848,7 @@ void setClusterNodeToInboundClusterLink(clusterNode *node, clusterLink *link) {
* one inbound link from the same node at the same time. Our cleanup logic assumes
* a one to one relationship between nodes and inbound links, so we need to kill
* one of the links. The existing link is more likely the outdated one, but it's
- * possible the the other node may need to open another link. */
+ * possible the other node may need to open another link. */
serverLog(LL_DEBUG, "Replacing inbound link fd %d from node %.40s with fd %d",
node->inbound_link->conn->fd, node->name, link->conn->fd);
freeClusterLink(node->inbound_link);
@@ -5216,7 +5216,7 @@ void clusterReplyShards(client *c) {
continue;
}
shard_count++;
- /* n->slot_info_pairs is set to NULL when the the node owns no slots. */
+ /* n->slot_info_pairs is set to NULL when the node owns no slots. */
addShardReplyForClusterShards(c, n, n->slot_info_pairs, n->slot_info_pairs_count);
clusterFreeNodesSlotsInfo(n);
}
@@ -6652,7 +6652,7 @@ void readwriteCommand(client *c) {
/* Return the pointer to the cluster node that is able to serve the command.
* For the function to succeed the command should only target either:
*
- * 1) A single key (even multiple times like LPOPRPUSH mylist mylist).
+ * 1) A single key (even multiple times like RPOPLPUSH mylist mylist).
* 2) Multiple keys in the same hash slot, while the slot is stable (no
* resharding in progress).
*