From 63ac636d569642b80395bb2489cc6312f9c3b4d1 Mon Sep 17 00:00:00 2001 From: Binbin Date: Fri, 2 Aug 2024 12:32:04 +0800 Subject: [PATCH] Fix outdated comment of migrate in valkey-cli --cluster 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 22078fc423..91a7bf1b0d 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) {