Update StorageReplicatedMergeTree.cpp

This commit is contained in:
alexey-milovidov 2019-06-26 23:04:39 +03:00 committed by Mikhail f. Shiryaev
parent da50663e2c
commit 8008ce6e9e

View File

@ -3042,9 +3042,12 @@ bool StorageReplicatedMergeTree::optimize(const ASTPtr & query, const ASTPtr & p
if (!selected)
{
String message = "Cannot select parts for optimization" + (disable_reason.empty() ? "" : ": " + disable_reason)
LOG_INFO(log, message);
return handle_noop(message);
std::stringstream message;
message << "Cannot select parts for optimization";
if (!disable_reason.empty())
message << ": " << disable_reason;
LOG_INFO(log, message.rdbuf());
return handle_noop(message.str());
}
ReplicatedMergeTreeLogEntryData merge_entry;