mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-14 03:25:15 +00:00
Update src/Storages/MergeTree/MergeTreeData.cpp
Co-authored-by: Alexander Tokmakov <tavplubix@gmail.com>
This commit is contained in:
parent
a344b526a6
commit
ae1dfb9ce5
@ -2468,7 +2468,7 @@ size_t MergeTreeData::clearEmptyParts()
|
||||
if (part->rows_count != 0)
|
||||
continue;
|
||||
|
||||
/// Do not try to drop uncommitted parts. If the newest tx doesn't see it that is probably hasn't been committed jet
|
||||
/// Do not try to drop uncommitted parts. If the newest tx doesn't see it then it probably hasn't been committed yet
|
||||
if (!part->version.getCreationTID().isPrehistoric() && !part->version.isVisible(TransactionLog::instance().getLatestSnapshot()))
|
||||
continue;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user