From 054ffd140f4982850aae147908b968215613641c Mon Sep 17 00:00:00 2001 From: Binbin Date: Sat, 3 Aug 2024 14:13:37 +0800 Subject: [PATCH] Fix outdated comment of migrate in valkey-cli --cluster (#864) After 503fd229e4181e932ba74b3ca8a222712d80ebca the comment is outdated. Signed-off-by: Binbin --- src/valkey-cli.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/valkey-cli.c b/src/valkey-cli.c index 22078fc42..91a7bf1b0 100644 --- a/src/valkey-cli.c +++ b/src/valkey-cli.c @@ -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) {