Skip to content

Commit

Permalink
Try to fix the test
Browse files Browse the repository at this point in the history
Signed-off-by: Binbin <[email protected]>
  • Loading branch information
enjoy-binbin committed Mar 4, 2025
1 parent be0d9ba commit 7a38a41
Showing 1 changed file with 1 addition 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 @@ -3527,7 +3527,7 @@ int clusterProcessPacket(clusterLink *link) {
/* This packet is stale so we avoid processing it anymore. Otherwise
* this may cause a primary-replica chain issue. */
return 1;
} else if (nodeIsReplica(sender_claimed_primary)) {
} else {
/* `primary` is still a `replica` in this observer node's view;
* update its role and configEpoch */
clusterSetNodeAsPrimary(sender_claimed_primary);
Expand Down

0 comments on commit 7a38a41

Please sign in to comment.