Skip to content

Commit

Permalink
Fix outdated comment of migrate in valkey-cli --cluster
Browse files Browse the repository at this point in the history
After 503fd22 the comment is outdated.

Signed-off-by: Binbin <[email protected]>
  • Loading branch information
enjoy-binbin committed Aug 2, 2024
1 parent b728e41 commit 63ac636
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/valkey-cli.c
Original file line number Diff line number Diff line change
Expand Up @@ -4865,11 +4865,11 @@ static int clusterManagerMigrateKeysInSlot(clusterManagerNode *source,
* check whether its value is the same in both nodes.
* In case of equal values, retry migration with the
* REPLACE option.
*
* In case of different values:
* - If the migration is requested by the fix command, stop
* - If --cluster-replace option is not provided, stop
* and warn the user.
* - In other cases (ie. reshard), proceed only if the user
* launched the command with the --cluster-replace option.*/
* - If --cluster-replace option is provided, proceed it. */
if (is_busy) {
clusterManagerLogWarn("\n*** Target key exists\n");
if (!do_replace) {
Expand Down

0 comments on commit 63ac636

Please sign in to comment.