Content-Length: 259057 | pFad | http://github.com/postgrespro/postgres_cluster/commit/9e7d4763352d97e4450f0bac42176ce6bc0ada72

F3 Move watchdog check under lock · postgrespro/postgres_cluster@9e7d476 · GitHub
Skip to content

Commit 9e7d476

Browse files
committed
Move watchdog check under lock
1 parent 883d363 commit 9e7d476

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

contrib/mmts/multimaster.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -801,8 +801,8 @@ MtmPostPrepareTransaction(MtmCurrentTrans* x)
801801
int nConfigChanges = Mtm->nConfigChanges;
802802
/* wait votes from all nodes */
803803
while (!ts->votingCompleted) {
804-
MtmUnlock();
805804
MtmWatchdog();
805+
MtmUnlock();
806806
result = WaitLatch(&MyProc->procLatch, WL_LATCH_SET|WL_TIMEOUT, timeout);
807807
if (result & WL_LATCH_SET) {
808808
ResetLatch(&MyProc->procLatch);

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/postgrespro/postgres_cluster/commit/9e7d4763352d97e4450f0bac42176ce6bc0ada72

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy