Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 70fce12

Browse files
committed
nActiveTransactions sometimes can be miscalculated and we will forever wait for MtmRecoveryCaughtUp() to became true. Just do not use it, as it is not mandatory
1 parent 29bca59 commit 70fce12

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

contrib/mmts/multimaster.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2199,7 +2199,8 @@ bool MtmRecoveryCaughtUp(int nodeId, lsn_t walEndPtr)
21992199
{
22002200
bool caughtUp = false;
22012201
MtmLock(LW_EXCLUSIVE);
2202-
if (MtmIsRecoveredNode(nodeId) && Mtm->nActiveTransactions == 0) {
2202+
if (MtmIsRecoveredNode(nodeId))
2203+
{
22032204
MtmStateProcessNeighborEvent(nodeId, MTM_NEIGHBOR_RECOVERY_CAUGHTUP);
22042205
caughtUp = true;
22052206
MtmIsRecoverySession = false;

0 commit comments

Comments
 (0)