Update BackupCoordinationStageSync.cpp

This commit is contained in:
Alexander Tokmakov 2023-12-29 17:58:24 +01:00 committed by GitHub
parent 302ddeb6d0
commit 790ededf80
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -154,7 +154,7 @@ BackupCoordinationStageSync::State BackupCoordinationStageSync::readCurrentState
/// If the "alive" node doesn't exist then we don't have connection to the corresponding host.
/// This node is ephemeral so probably it will be recreated soon. We use zookeeper retries to wait.
/// In worst case when we won't manage to see the alive node for a long time we will just abort the backup.
const auto * const suffix suffix = retries_ctl.isLastRetry() ? "" : ", will retry";
const auto * const suffix = retries_ctl.isLastRetry() ? "" : ", will retry";
if (started)
retries_ctl.setUserError(Exception(ErrorCodes::FAILED_TO_SYNC_BACKUP_OR_RESTORE,
"Lost connection to host {}{}", host, suffix));