diff options
author | Benety Goh <benety@mongodb.com> | 2018-05-09 13:24:03 -0400 |
---|---|---|
committer | Benety Goh <benety@mongodb.com> | 2018-06-05 14:00:40 -0400 |
commit | e0abafe82c4757b1080632b3edd7b622694c284b (patch) | |
tree | e97031b98aa7c81a07f56bed8342b218a794e818 /src/mongo/db/repl/initial_syncer.cpp | |
parent | 74c065ebfa0c61fa336e0d01180c6defe001c3db (diff) | |
download | mongo-e0abafe82c4757b1080632b3edd7b622694c284b.tar.gz |
SERVER-34900 initial sync uses SyncTail::BatchLimits to hold oplog application batching settings
(cherry picked from commit 4b8abbe03c7acb16a48a750af3253e7aed330e5d)
Diffstat (limited to 'src/mongo/db/repl/initial_syncer.cpp')
-rw-r--r-- | src/mongo/db/repl/initial_syncer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/repl/initial_syncer.cpp b/src/mongo/db/repl/initial_syncer.cpp index a5029a55b5d..d8eb760528f 100644 --- a/src/mongo/db/repl/initial_syncer.cpp +++ b/src/mongo/db/repl/initial_syncer.cpp @@ -1509,10 +1509,10 @@ StatusWith<Operations> InitialSyncer::_getNextApplierBatch_inlock() { } // Apply replication batch limits. - if (ops.size() >= _opts.replBatchLimitOperations) { + if (ops.size() >= _opts.batchLimits.ops) { return std::move(ops); } - if (totalBytes + entry.raw.objsize() >= _opts.replBatchLimitBytes) { + if (totalBytes + entry.raw.objsize() >= _opts.batchLimits.bytes) { return std::move(ops); } |