We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3f829e9 commit db62658Copy full SHA for db62658
src/mongo/db/oplog.cpp
@@ -98,8 +98,6 @@ namespace mongo {
98
theReplSet->lastOpTimeWritten = ts;
99
theReplSet->lastH = h;
100
ctx.getClient()->setLastOp( ts );
101
-
102
- replset::BackgroundSync::notify();
103
}
104
105
src/mongo/db/repl/rs_initialsync.cpp
@@ -450,6 +450,10 @@ namespace mongo {
450
cx.ctx().db()->flushFiles(true);
451
452
453
+ // If we just cloned & there were no ops applied, we still want the primary to know where
454
+ // we're up to
455
+ replset::BackgroundSync::notify();
456
+
457
changeState(MemberState::RS_RECOVERING);
458
sethbmsg("initial sync done",0);
459
0 commit comments