diff options
author | Andy Schwerin <schwerin@mongodb.com> | 2018-05-02 10:37:46 -0400 |
---|---|---|
committer | Andy Schwerin <schwerin@mongodb.com> | 2018-05-03 13:48:18 -0400 |
commit | b1cc960cb5de30861b00bf72057c5dfa0733c1fb (patch) | |
tree | 8fe35995d3259ebbd8c7aab44be04bc0d046ac17 /src/mongo/db/db.cpp | |
parent | bb2a2ccf260929e8a97080f81cd696340d429d57 (diff) | |
download | mongo-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.cpp | 6 |
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(); } |