summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Milkie <milkie@10gen.com>2012-06-22 17:23:44 -0400
committerEric Milkie <milkie@10gen.com>2012-06-22 17:23:44 -0400
commite5b586a0fd0978802560e2319da38e08e3bab7df (patch)
tree5138935a08bf4214db9432b8b481c6b5906e8dc3
parent64f1404354f65247efdf9fd23aa178cf274f8af8 (diff)
downloadmongo-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.cpp3
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);
}