summaryrefslogtreecommitdiff
path: root/src/mongo/db/ttl.cpp
diff options
context:
space:
mode:
authorHenrik Edin <henrik.edin@mongodb.com>2017-12-15 11:33:30 -0500
committerHenrik Edin <henrik.edin@mongodb.com>2018-01-22 13:51:26 -0500
commitc376f4b80d26028b6a8746f8545a35e390b59bf2 (patch)
treebffed1afdcc737dcbc899af35c84ccd6cbc4d100 /src/mongo/db/ttl.cpp
parent50921266423bf59267b08e0f8ee23469ea03d768 (diff)
downloadmongo-c376f4b80d26028b6a8746f8545a35e390b59bf2.tar.gz
SERVER-29519 Removed many usages of getGlobalReplicationCoordinator
Diffstat (limited to 'src/mongo/db/ttl.cpp')
-rw-r--r--src/mongo/db/ttl.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/db/ttl.cpp b/src/mongo/db/ttl.cpp
index 0eb5d8ebaeb..bd8db9f6526 100644
--- a/src/mongo/db/ttl.cpp
+++ b/src/mongo/db/ttl.cpp
@@ -121,9 +121,9 @@ private:
OperationContext& opCtx = *opCtxPtr;
// If part of replSet but not in a readable state (e.g. during initial sync), skip.
- if (repl::getGlobalReplicationCoordinator()->getReplicationMode() ==
+ if (repl::ReplicationCoordinator::get(&opCtx)->getReplicationMode() ==
repl::ReplicationCoordinator::modeReplSet &&
- !repl::getGlobalReplicationCoordinator()->getMemberState().readable())
+ !repl::ReplicationCoordinator::get(&opCtx)->getMemberState().readable())
return;
TTLCollectionCache& ttlCollectionCache = TTLCollectionCache::get(getGlobalServiceContext());
@@ -195,7 +195,7 @@ private:
return;
}
- if (!repl::getGlobalReplicationCoordinator()->canAcceptWritesFor(opCtx, collectionNSS)) {
+ if (!repl::ReplicationCoordinator::get(opCtx)->canAcceptWritesFor(opCtx, collectionNSS)) {
return;
}