dbms: fixed error in prev. revisions [#METR-12524].

This commit is contained in:
Alexey Milovidov 2014-10-03 22:55:11 +04:00
parent 7106b4f536
commit a2634c60d0

View File

@ -229,7 +229,7 @@ void StorageMergeTree::dropPartition(const Field & partition, bool detach)
for (const auto & part : parts)
{
if (part->left_month == part->right_month && part->left_month == month)
if (!(part->left_month == part->right_month && part->left_month == month))
continue;
LOG_DEBUG(log, "Removing part " << part->name);