Update src/Storages/MergeTree/MergeTreeData.cpp

Co-authored-by: Alexander Tokmakov <tavplubix@gmail.com>
This commit is contained in:
Sema Checherinda 2023-01-18 15:21:11 +01:00 committed by GitHub
parent a344b526a6
commit ae1dfb9ce5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;