File tree Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Original file line number Diff line number Diff line change @@ -291,13 +291,6 @@ void MtmReleaseLocks(void)
291
291
if (MtmClusterLocked ) {
292
292
MtmUnlockCluster ();
293
293
}
294
- if (MtmLockCount != 0 ) {
295
- Assert (Mtm -> lastLockHolder == MyProcPid );
296
- MtmLockCount = 0 ;
297
- Mtm -> lastLockHolder = 0 ;
298
- LWLockRelease ((LWLockId )& Mtm -> locks [MTM_STATE_LOCK_ID ]);
299
- }
300
-
301
294
}
302
295
303
296
/*
@@ -1808,6 +1801,7 @@ void MtmAbortTransaction(MtmTransState* ts)
1808
1801
void MtmHandleApplyError (void )
1809
1802
{
1810
1803
ErrorData * edata = CopyErrorData ();
1804
+ MtmLockCount = 0 ; /* LWLocks will be released by AbortTransaction, we just need to clear owr MtmLockCount */
1811
1805
switch (edata -> sqlerrcode ) {
1812
1806
case ERRCODE_DISK_FULL :
1813
1807
case ERRCODE_INSUFFICIENT_RESOURCES :
You can’t perform that action at this time.
0 commit comments