1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-04 04:42:30 +03:00

Fixes to COMMIT operation logic to keep ranges in valid state

This commit is contained in:
Sergey Zefirov
2021-04-23 16:18:16 +03:00
parent 9a2887748e
commit 47b1430121
6 changed files with 54 additions and 24 deletions

View File

@ -430,14 +430,7 @@ CommandPackageProcessor::processPackage(dmlpackage::CalpontDMLPackage& cpackage)
if (!cpInvalidated)
{
// The code below assumes that in case of COMMIT all ranges for all touched LBIDs
// are either correctly set or correctly reset.
// It is also assumes that ROLLBACK or other operations but COMMIT may not return ranges
// to state that is correct. This is why we invalidate extents when we are not committing.
if (stmt != "COMMIT")
{
fDbrm->invalidateUncommittedExtentLBIDs(0, &lbidList);
}
fDbrm->invalidateUncommittedExtentLBIDs(0, &lbidList);
}
}
}