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

Commit 3b3b477

Browse files
committed
Do not commit/abort transactions while not online. Also remove erroneous check that was duplicating commitPrecommited=true functionality in MtmPoll..ForDisabledNode.
1 parent 2ac4057 commit 3b3b477

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

multimaster.c

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1702,16 +1702,7 @@ static void MtmBroadcastPollMessage(MtmTransState* ts)
17021702
int nparts;
17031703
MtmArbiterMessage msg;
17041704

1705-
nparts = Mtm->nAllNodes - countZeroBits(ts->participantsMask, Mtm->nAllNodes);
1706-
MTM_LOG1("MtmBroadcastPollMessage: %s %lld %d", ts->gid, ts->participantsMask, nparts);
1707-
1708-
if (nparts == 1)
1709-
{
1710-
/* we were in major mode and there nobody to ask about status */
1711-
MtmFinishPreparedTransaction(ts, true);
1712-
return;
1713-
}
1714-
1705+
MTM_LOG1("MtmBroadcastPollMessage: %s %lld", ts->gid, ts->participantsMask);
17151706
MtmInitMessage(&msg, MSG_POLL_REQUEST);
17161707
memcpy(msg.gid, ts->gid, MULTIMASTER_MAX_GID_SIZE);
17171708
ts->votedMask = 0;

0 commit comments

Comments
 (0)