File tree 3 files changed +12
-0
lines changed
3 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -1896,6 +1896,15 @@ GetAwaitedLock(void)
1896
1896
return awaitedLock ;
1897
1897
}
1898
1898
1899
+ /*
1900
+ * ResetAwaitedLock -- Forget that we are waiting on a lock.
1901
+ */
1902
+ void
1903
+ ResetAwaitedLock (void )
1904
+ {
1905
+ awaitedLock = NULL ;
1906
+ }
1907
+
1899
1908
/*
1900
1909
* MarkLockClear -- mark an acquired lock as "clear"
1901
1910
*
Original file line number Diff line number Diff line change @@ -814,6 +814,8 @@ LockErrorCleanup(void)
814
814
GrantAwaitedLock ();
815
815
}
816
816
817
+ ResetAwaitedLock ();
818
+
817
819
LWLockRelease (partitionLock );
818
820
819
821
RESUME_INTERRUPTS ();
Original file line number Diff line number Diff line change @@ -588,6 +588,7 @@ extern bool LockCheckConflicts(LockMethod lockMethodTable,
588
588
extern void GrantLock (LOCK * lock , PROCLOCK * proclock , LOCKMODE lockmode );
589
589
extern void GrantAwaitedLock (void );
590
590
extern LOCALLOCK * GetAwaitedLock (void );
591
+ extern void ResetAwaitedLock (void );
591
592
592
593
extern void RemoveFromWaitQueue (PGPROC * proc , uint32 hashcode );
593
594
extern LockData * GetLockStatusData (void );
You can’t perform that action at this time.
0 commit comments