Skip to content

Commit

Permalink
Address feedback
Browse files Browse the repository at this point in the history
Signed-off-by: Roshan Khatri <[email protected]>
  • Loading branch information
roshkhatri committed May 22, 2024
1 parent 7621474 commit e2deb63
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/cluster_legacy.c
Original file line number Diff line number Diff line change
Expand Up @@ -2367,7 +2367,7 @@ void clusterUpdateSlotsConfigWith(clusterNode *sender, uint64_t senderConfigEpoc
serverLog(LL_NOTICE,"Discarding UPDATE message about myself.");
return;
}

for (j = 0; j < CLUSTER_SLOTS; j++) {
if (bitmapTestBit(slots,j)) {
sender_slots++;
Expand Down
3 changes: 3 additions & 0 deletions tests/unit/cluster/announced-endpoints.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ start_cluster 2 2 {tags {external:skip cluster}} {
}
set count [expr [llength $::servers] + 1]
set used_port [find_available_port $baseport $count]

# We execute CLUSTER SLOTS command to trigger the debug assertions, ensuring that the cached response is
# invalidated when we update any of cluster-announce-tls-port or cluster-announce-port.
R 0 CLUSTER SLOTS
R 1 CLUSTER SLOTS

Expand Down

0 comments on commit e2deb63

Please sign in to comment.