summaryrefslogtreecommitdiff
path: root/src/mongo/db/commands/snapshot_management.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/commands/snapshot_management.cpp
parentbb2a2ccf260929e8a97080f81cd696340d429d57 (diff)
downloadmongo-b1cc960cb5de30861b00bf72057c5dfa0733c1fb.tar.gz
SERVER-34751 Replace getGlobalStorageEngine cals with getStorageEngine.
Diffstat (limited to 'src/mongo/db/commands/snapshot_management.cpp')
-rw-r--r--src/mongo/db/commands/snapshot_management.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/mongo/db/commands/snapshot_management.cpp b/src/mongo/db/commands/snapshot_management.cpp
index 9a9084b8723..84c57af241b 100644
--- a/src/mongo/db/commands/snapshot_management.cpp
+++ b/src/mongo/db/commands/snapshot_management.cpp
@@ -71,8 +71,7 @@ public:
const std::string& dbname,
const BSONObj& cmdObj,
BSONObjBuilder& result) {
- auto snapshotManager =
- getGlobalServiceContext()->getGlobalStorageEngine()->getSnapshotManager();
+ auto snapshotManager = getGlobalServiceContext()->getStorageEngine()->getSnapshotManager();
if (!snapshotManager) {
return CommandHelpers::appendCommandStatus(result,
{ErrorCodes::CommandNotSupported, ""});
@@ -116,8 +115,7 @@ public:
const std::string& dbname,
const BSONObj& cmdObj,
BSONObjBuilder& result) {
- auto snapshotManager =
- getGlobalServiceContext()->getGlobalStorageEngine()->getSnapshotManager();
+ auto snapshotManager = getGlobalServiceContext()->getStorageEngine()->getSnapshotManager();
if (!snapshotManager) {
return CommandHelpers::appendCommandStatus(result,
{ErrorCodes::CommandNotSupported, ""});