mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 00:22:29 +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
|
/// 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);
|
TIDHash removal_lock = removal_tid_lock.load(std::memory_order_relaxed);
|
||||||
if (!removal_lock)
|
if (!removal_lock)
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user