mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-23 16:12:01 +00:00
Remove unused Strings from MergeTreeData
Compiler does not emit a warning when there is an unused variable of a type with a non-trivial constructor. std::string is one of them. Hence, these two variables were overlooked. This commit removes them
This commit is contained in:
parent
de0876ed68
commit
daaa575106
@ -4793,7 +4793,6 @@ void MergeTreeData::movePartitionToDisk(const ASTPtr & partition, const String &
|
||||
|
||||
if (parts.empty())
|
||||
{
|
||||
String no_parts_to_move_message;
|
||||
if (moving_part)
|
||||
throw Exception(ErrorCodes::UNKNOWN_DISK, "Part '{}' is already on disk '{}'", partition_id, disk->getName());
|
||||
else
|
||||
@ -4875,7 +4874,6 @@ void MergeTreeData::movePartitionToVolume(const ASTPtr & partition, const String
|
||||
|
||||
if (parts.empty())
|
||||
{
|
||||
String no_parts_to_move_message;
|
||||
if (moving_part)
|
||||
throw Exception(ErrorCodes::UNKNOWN_DISK, "Part '{}' is already on volume '{}'", partition_id, volume->getName());
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user