diff options
author | Jason Chan <jason.chan@mongodb.com> | 2017-07-21 13:13:18 -0400 |
---|---|---|
committer | Jason Chan <jason.chan@mongodb.com> | 2017-08-11 16:25:04 -0400 |
commit | 0d3137df3879e86d92904309e968f25529904639 (patch) | |
tree | 4c235dea6963452a90b69afbe1cc9d9b19464aa7 /src/mongo/db/repl/database_cloner.cpp | |
parent | 9ab84fb795502c2a362fe74e4d438a952433d41a (diff) | |
download | mongo-0d3137df3879e86d92904309e968f25529904639.tar.gz |
SERVER-29617 replace fetcher with ARM and add numCursors server parameter
Diffstat (limited to 'src/mongo/db/repl/database_cloner.cpp')
-rw-r--r-- | src/mongo/db/repl/database_cloner.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mongo/db/repl/database_cloner.cpp b/src/mongo/db/repl/database_cloner.cpp index 0ebaf66e098..bc7ea109918 100644 --- a/src/mongo/db/repl/database_cloner.cpp +++ b/src/mongo/db/repl/database_cloner.cpp @@ -68,6 +68,9 @@ MONGO_EXPORT_STARTUP_SERVER_PARAMETER(collectionClonerBatchSize, int, defaultBat // The number of attempts for the listCollections commands. MONGO_EXPORT_SERVER_PARAMETER(numInitialSyncListCollectionsAttempts, int, 3); +// The number of cursors to use in the collection cloning process. +MONGO_EXPORT_SERVER_PARAMETER(maxNumInitialSyncCollectionClonerCursors, int, 1); + /** * Default listCollections predicate. */ @@ -364,7 +367,8 @@ void DatabaseCloner::_listCollectionsCallback(const StatusWith<Fetcher::QueryRes stdx::bind( &DatabaseCloner::_collectionClonerCallback, this, stdx::placeholders::_1, nss), _storageInterface, - collectionClonerBatchSize); + collectionClonerBatchSize, + maxNumInitialSyncCollectionClonerCursors.load()); } catch (const UserException& ex) { _finishCallback_inlock(lk, ex.toStatus()); return; |