summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/rs_sync.h
diff options
context:
space:
mode:
authorEric Milkie <milkie@10gen.com>2012-09-13 12:09:11 -0400
committerEric Milkie <milkie@10gen.com>2012-09-13 12:09:11 -0400
commit3b7bb12a556868be2082dbd9eb81431082a75d7b (patch)
tree18298ea8f75d9fe8848f16863c510ab965adb282 /src/mongo/db/repl/rs_sync.h
parent291b2e263b2ea3d578f183da7a9187c88d498d98 (diff)
downloadmongo-3b7bb12a556868be2082dbd9eb81431082a75d7b.tar.gz
SERVER-6816 cap repl batches at 1 second or 5000 ops
Diffstat (limited to 'src/mongo/db/repl/rs_sync.h')
-rw-r--r--src/mongo/db/repl/rs_sync.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mongo/db/repl/rs_sync.h b/src/mongo/db/repl/rs_sync.h
index 434ff54819b..b02fe7eaf6c 100644
--- a/src/mongo/db/repl/rs_sync.h
+++ b/src/mongo/db/repl/rs_sync.h
@@ -72,8 +72,9 @@ namespace replset {
protected:
// Cap the batches using the limit on journal commits.
// This works out to be 100 MB (64 bit) or 50 MB (32 bit)
- static const unsigned int replBatchSizeBytes = dur::UncommittedBytesLimit;
- static const int replBatchLimitSeconds = 5;
+ static const unsigned int replBatchLimitBytes = dur::UncommittedBytesLimit;
+ static const int replBatchLimitSeconds = 1;
+ static const unsigned int replBatchLimitOperations = 5000;
// Prefetch and write a deque of operations, using the supplied function.
// Initial Sync and Sync Tail each use a different function.