Merge pull request #68238 from ClickHouse/divanik/remove_useless_logs_about_zero_replication

Remove unnecessary logs in MergeTreeData.cpp
This commit is contained in:
Daniil Ivanik 2024-08-13 16:21:32 +00:00 committed by GitHub
commit e02b434d2f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2351,7 +2351,7 @@ size_t MergeTreeData::clearOldTemporaryDirectories(const String & root_path, siz
/// We don't control the amount of refs for temporary parts so we cannot decide can we remove blobs
/// or not. So we are not doing it
bool keep_shared = false;
if (disk->supportZeroCopyReplication() && settings->allow_remote_fs_zero_copy_replication)
if (disk->supportZeroCopyReplication() && settings->allow_remote_fs_zero_copy_replication && supportsReplication())
{
LOG_WARNING(log, "Since zero-copy replication is enabled we are not going to remove blobs from shared storage for {}", full_path);
keep_shared = true;