You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-07-30 19:23:07 +03:00
MCOL-1726 Make cleartablelock remove txn from BRM
With an API txn (and likely other scenarios) cleartablelock will roll back the txn and lock but leave a stale txn pointer in the BRM. This causes restart/shutdown to warn that transactions are still open. This patch makes sure BRM removes the txn from the list.
This commit is contained in:
@ -620,6 +620,12 @@ int main(int argc, char** argv)
|
|||||||
|
|
||||||
rc = execBulkRollbackReq( msgQueClts, pmList,
|
rc = execBulkRollbackReq( msgQueClts, pmList,
|
||||||
&brm, tInfo, tblName.toString(), rollbackOnly, errMsg );
|
&brm, tInfo, tblName.toString(), rollbackOnly, errMsg );
|
||||||
|
|
||||||
|
BRM::TxnID txn;
|
||||||
|
txn.id = tInfo.ownerTxnID;
|
||||||
|
txn.valid = true;
|
||||||
|
brm.rolledback(txn);
|
||||||
|
|
||||||
if (rc != 0)
|
if (rc != 0)
|
||||||
{
|
{
|
||||||
logFinalStatus( tblName.toString(), lockID, errMsg );
|
logFinalStatus( tblName.toString(), lockID, errMsg );
|
||||||
|
Reference in New Issue
Block a user