diff options
author | Henrik Edin <henrik.edin@mongodb.com> | 2017-12-15 11:33:30 -0500 |
---|---|---|
committer | Henrik Edin <henrik.edin@mongodb.com> | 2018-01-22 13:51:26 -0500 |
commit | c376f4b80d26028b6a8746f8545a35e390b59bf2 (patch) | |
tree | bffed1afdcc737dcbc899af35c84ccd6cbc4d100 /src/mongo/db/repl/bgsync.cpp | |
parent | 50921266423bf59267b08e0f8ee23469ea03d768 (diff) | |
download | mongo-c376f4b80d26028b6a8746f8545a35e390b59bf2.tar.gz |
SERVER-29519 Removed many usages of getGlobalReplicationCoordinator
Diffstat (limited to 'src/mongo/db/repl/bgsync.cpp')
-rw-r--r-- | src/mongo/db/repl/bgsync.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/db/repl/bgsync.cpp b/src/mongo/db/repl/bgsync.cpp index 7a411a498b3..452b3c24941 100644 --- a/src/mongo/db/repl/bgsync.cpp +++ b/src/mongo/db/repl/bgsync.cpp @@ -139,11 +139,12 @@ static ServerStatusMetricField<Counter64> displayBufferMaxSize("repl.buffer.maxS BackgroundSync::BackgroundSync( + ReplicationCoordinator* replicationCoordinator, ReplicationCoordinatorExternalState* replicationCoordinatorExternalState, ReplicationProcess* replicationProcess, std::unique_ptr<OplogBuffer> oplogBuffer) : _oplogBuffer(std::move(oplogBuffer)), - _replCoord(getGlobalReplicationCoordinator()), + _replCoord(replicationCoordinator), _replicationCoordinatorExternalState(replicationCoordinatorExternalState), _replicationProcess(replicationProcess) { // Update "repl.buffer.maxSizeBytes" server status metric to reflect the current oplog buffer's |