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

Commit f64864a

Browse files
knizhnikkelvich
authored andcommitted
Restart replication in RECOVERED mode
1 parent 1ad4f8f commit f64864a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

multimaster.c

+3
Original file line numberDiff line numberDiff line change
@@ -3448,6 +3448,9 @@ MtmReplicationMode MtmGetReplicationMode(int nodeId, sig_atomic_t volatile* shut
34483448
MtmSleep(STATUS_POLL_DELAY);
34493449
MtmLock(LW_EXCLUSIVE);
34503450
}
3451+
if (Mtm->status == MTM_RECOVERED) {
3452+
mode = REPLMODE_RECOVERED;
3453+
}
34513454
if (mode == REPLMODE_RECOVERED) {
34523455
MTM_LOG1("%d: Restart replication from node %d after end of recovery", MyProcPid, nodeId);
34533456
} else if (mode == REPLMODE_CREATE_NEW) {

0 commit comments

Comments
 (0)