mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-23 16:12:01 +00:00
canBeRemoved take into account creation_csn then no txn
This commit is contained in:
parent
def63232d2
commit
06ac225425
@ -243,6 +243,9 @@ bool VersionMetadata::canBeRemoved()
|
||||
{
|
||||
/// Avoid access to Transaction log if transactions are not involved
|
||||
|
||||
if (creation_csn.load(std::memory_order_relaxed) == Tx::RolledBackCSN)
|
||||
return true;
|
||||
|
||||
TIDHash removal_lock = removal_tid_lock.load(std::memory_order_relaxed);
|
||||
if (!removal_lock)
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user