canBeRemoved take into account creation_csn then no txn

This commit is contained in:
Sema Checherinda 2022-10-19 12:42:45 +02:00
parent def63232d2
commit 06ac225425

View File

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