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

Commit94f2024

Browse files
knizhnikkelvich
authored andcommitted
Fix calculation of recoveredLSN
1 parent8d58d05 commit94f2024

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎multimaster.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1535,6 +1535,7 @@ void MtmRecoveryCompleted(void)
15351535
MtmNodeId, (long long)Mtm->disabledNodeMask, (long long)Mtm->connectivityMask,Mtm->nLiveNodes);
15361536
MtmLock(LW_EXCLUSIVE);
15371537
Mtm->recoverySlot=0;
1538+
Mtm->recoveredLSN=GetXLogInsertRecPtr();
15381539
BIT_CLEAR(Mtm->disabledNodeMask,MtmNodeId-1);
15391540
Mtm->reconnectMask |=Mtm->connectivityMask;/* try to reestablish all connections */
15401541
Mtm->nodes[MtmNodeId-1].lastStatusChangeTime=MtmGetSystemTime();
@@ -1628,7 +1629,6 @@ bool MtmRecoveryCaughtUp(int nodeId, XLogRecPtr slotLSN)
16281629
MTM_LOG1("%d: node %d is caugth-up without locking cluster",MyProcPid,nodeId);
16291630
/* We are lucky: caugth-up without locking cluster! */
16301631
}
1631-
Mtm->recoveredLSN=walLSN;
16321632
MtmEnableNode(nodeId);
16331633
Mtm->nConfigChanges+=1;
16341634
caughtUp= true;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp