You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: multimaster.c
+7-1Lines changed: 7 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -319,6 +319,9 @@ void MtmLock(LWLockMode mode)
319
319
timestamp_tstart,stop;
320
320
start=MtmGetSystemTime();
321
321
#endif
322
+
if (MyProc==NULL) {/* Can not wait if have no PGPROC. It can happen at process exit. TODO: without lock we can get race condition and corrupt Mtm state */