Skip to content

Commit

Permalink
Fix outdated slot info comments in clusterGenNodesSlotsInfo (#1696)
Browse files Browse the repository at this point in the history
Signed-off-by: Binbin <binloveplay1314@qq.com>
  • Loading branch information
enjoy-binbin authored Feb 10, 2025
1 parent f61b81e commit 3828936
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cluster_legacy.c
Original file line number Diff line number Diff line change
Expand Up @@ -6026,8 +6026,8 @@ sds clusterGenNodeDescription(client *c, clusterNode *node, int tls_primary) {
return ci;
}

/* Generate the slot topology for all nodes and store the string representation
* in the slots_info struct on the node. This is used to improve the efficiency
/* Generate the slot topology for all nodes and store the slot range information
* in the slot_info_pairs array on the node. This is used to improve the efficiency
* of clusterGenNodesDescription() because it removes looping of the slot space
* for generating the slot info for each node individually. */
void clusterGenNodesSlotsInfo(int filter) {
Expand Down

0 comments on commit 3828936

Please sign in to comment.