diff options
author | Eric Milkie <milkie@10gen.com> | 2012-06-22 17:23:44 -0400 |
---|---|---|
committer | Eric Milkie <milkie@10gen.com> | 2012-06-22 17:23:44 -0400 |
commit | e5b586a0fd0978802560e2319da38e08e3bab7df (patch) | |
tree | 5138935a08bf4214db9432b8b481c6b5906e8dc3 | |
parent | 64f1404354f65247efdf9fd23aa178cf274f8af8 (diff) | |
download | mongo-e5b586a0fd0978802560e2319da38e08e3bab7df.tar.gz |
SERVER-5685 don't block for 1 second in peek() calls
This was causing delays when waiting on writes on the primary since
we didn't apply single ops immediately as they came in on the secondary.
-rw-r--r-- | src/mongo/db/repl/bgsync.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/mongo/db/repl/bgsync.cpp b/src/mongo/db/repl/bgsync.cpp index ccb75ab6f38..6adae4cadf4 100644 --- a/src/mongo/db/repl/bgsync.cpp +++ b/src/mongo/db/repl/bgsync.cpp @@ -352,9 +352,6 @@ namespace replset { _oplogMarkerTarget = NULL; } } - // block for up to 1 second, waiting for an op - // to appear off the network - waitForMore(); return _buffer.peek(*op); } |