Skip to content

Commit

Permalink
SERVER-8070 Notify primary after each batch, not after each op
Browse files Browse the repository at this point in the history
  • Loading branch information
kchodorow committed Jan 15, 2013
1 parent 3f829e9 commit db62658
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/mongo/db/oplog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,6 @@ namespace mongo {
theReplSet->lastOpTimeWritten = ts;
theReplSet->lastH = h;
ctx.getClient()->setLastOp( ts );

replset::BackgroundSync::notify();
}
}
}
Expand Down
4 changes: 4 additions & 0 deletions src/mongo/db/repl/rs_initialsync.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -450,6 +450,10 @@ namespace mongo {
cx.ctx().db()->flushFiles(true);
}

// If we just cloned & there were no ops applied, we still want the primary to know where
// we're up to
replset::BackgroundSync::notify();

changeState(MemberState::RS_RECOVERING);
sethbmsg("initial sync done",0);
}
Expand Down

0 comments on commit db62658

Please sign in to comment.