Fix outdated comment of migrate in valkey-cli --cluster (#864)

After 503fd229e4181e932ba74b3ca8a222712d80ebca the comment is outdated.

Signed-off-by: Binbin <binloveplay1314@qq.com>
This commit is contained in:
Binbin 2024-08-03 14:13:37 +08:00 committed by GitHub
parent b728e4170f
commit 054ffd140f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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) {