Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd2018b3

Browse files
committed
remove old version of MtmGetReplicationMode()
1 parent247bce7 commitd2018b3

File tree

1 file changed

+0
-34
lines changed

1 file changed

+0
-34
lines changed

‎multimaster.c

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -3334,40 +3334,6 @@ MtmReplicationMode MtmGetReplicationMode(int nodeId, sig_atomic_t volatile* shut
33343334
Mtm->preparedTransactionsLoaded= true;
33353335
}
33363336

3337-
// while (BIT_CHECK(Mtm->disabledNodeMask, MtmNodeId - 1) ||
3338-
// BIT_CHECK(SELF_CONNECTIVITY_MASK, nodeId - 1) ||
3339-
// !BIT_CHECK(Mtm->clique, nodeId - 1) ||
3340-
// !BIT_CHECK(Mtm->clique, MtmNodeId - 1) )
3341-
// {
3342-
// if (*shutdown)
3343-
// {
3344-
// MtmUnlock();
3345-
// return REPLMODE_EXIT;
3346-
// }
3347-
3348-
// if ((Mtm->recoverySlot == 0 || Mtm->recoverySlot == nodeId) &&
3349-
// (!BIT_CHECK(SELF_CONNECTIVITY_MASK, nodeId - 1)))
3350-
// {
3351-
// /* Lock on us */
3352-
// Mtm->recoverySlot = nodeId;
3353-
// MtmPollStatusOfPreparedTransactions();
3354-
// MtmUnlock();
3355-
// return REPLMODE_RECOVERY;
3356-
// }
3357-
3358-
// MTM_LOG1("Replication to node %d is pending: recovery node=%d, donor node=%d, connectivity mask=%llx, disabled mask=%llx",
3359-
// nodeId, Mtm->recoverySlot, Mtm->donorNodeId, SELF_CONNECTIVITY_MASK, Mtm->disabledNodeMask);
3360-
3361-
// MtmUnlock();
3362-
// /* delay opening of other slots until recovery is completed */
3363-
// MtmSleep(STATUS_POLL_DELAY);
3364-
// MtmLock(LW_EXCLUSIVE);
3365-
// }
3366-
3367-
// MtmUnlock();
3368-
3369-
// return REPLMODE_RECOVERED;
3370-
33713337
/* Await until node is connected and both receiver and sender are in clique */
33723338
while (BIT_CHECK(SELF_CONNECTIVITY_MASK,nodeId-1)||
33733339
!BIT_CHECK(Mtm->clique,nodeId-1)||

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp