You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-07-04 04:42:30 +03:00
MCOL-4766 ROLLBACK kept ranges changed inside rolled back transaction
Now ROLLBACK drops ranges to INVALID state which makes engine to rescan blocks and discover correct ranges.
This commit is contained in:
@ -373,7 +373,7 @@ CommandPackageProcessor::processPackage(dmlpackage::CalpontDMLPackage& cpackage)
|
||||
if (weRc == 0)
|
||||
{
|
||||
//@Bug 4560 invalidate cp first as bulkrollback will truncate the newly added lbids.
|
||||
fDbrm->invalidateUncommittedExtentLBIDs(0, &lbidList);
|
||||
fDbrm->invalidateUncommittedExtentLBIDs(0, true, &lbidList);
|
||||
cpInvalidated = true;
|
||||
weRc = rollBackBatchAutoOnTransaction(uniqueId, txnid, fSessionID, cpackage.getTableOid(), errorMsg);
|
||||
|
||||
@ -430,7 +430,7 @@ CommandPackageProcessor::processPackage(dmlpackage::CalpontDMLPackage& cpackage)
|
||||
|
||||
if (!cpInvalidated)
|
||||
{
|
||||
fDbrm->invalidateUncommittedExtentLBIDs(0, &lbidList);
|
||||
fDbrm->invalidateUncommittedExtentLBIDs(0, stmt == "ROLLBACK", &lbidList);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user