summaryrefslogtreecommitdiff
path: root/src/mongo/db/db.cpp
diff options
context:
space:
mode:
authorAndy Schwerin <schwerin@mongodb.com>2018-05-02 10:37:46 -0400
committerAndy Schwerin <schwerin@mongodb.com>2018-05-03 13:48:18 -0400
commitb1cc960cb5de30861b00bf72057c5dfa0733c1fb (patch)
tree8fe35995d3259ebbd8c7aab44be04bc0d046ac17 /src/mongo/db/db.cpp
parentbb2a2ccf260929e8a97080f81cd696340d429d57 (diff)
downloadmongo-b1cc960cb5de30861b00bf72057c5dfa0733c1fb.tar.gz
SERVER-34751 Replace getGlobalStorageEngine cals with getStorageEngine.
Diffstat (limited to 'src/mongo/db/db.cpp')
-rw-r--r--src/mongo/db/db.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/db/db.cpp b/src/mongo/db/db.cpp
index ce59dfe90f8..957b55b633b 100644
--- a/src/mongo/db/db.cpp
+++ b/src/mongo/db/db.cpp
@@ -586,7 +586,7 @@ ExitCode _initAndListen(int listenPort) {
// Start up a background task to periodically check for and kill expired transactions.
// Only do this on storage engines supporting snapshot reads, which hold resources we wish to
// release periodically in order to avoid storage cache pressure build up.
- auto storageEngine = serviceContext->getGlobalStorageEngine();
+ auto storageEngine = serviceContext->getStorageEngine();
invariant(storageEngine);
if (storageEngine->supportsReadConcernSnapshot()) {
startPeriodicThreadToAbortExpiredTransactions(serviceContext);
@@ -844,7 +844,7 @@ void shutdownTask() {
// Shut down the global dbclient pool so callers stop waiting for connections.
globalConnPool.shutdown();
- if (serviceContext->getGlobalStorageEngine()) {
+ if (serviceContext->getStorageEngine()) {
ServiceContext::UniqueOperationContext uniqueOpCtx;
OperationContext* opCtx = client->getOperationContext();
if (!opCtx) {
@@ -930,7 +930,7 @@ void shutdownTask() {
invariant(LOCK_OK == result);
// Global storage engine may not be started in all cases before we exit
- if (serviceContext->getGlobalStorageEngine()) {
+ if (serviceContext->getStorageEngine()) {
serviceContext->shutdownGlobalStorageEngineCleanly();
}