diff options
author | Hari Khalsa <hkhalsa@10gen.com> | 2014-07-16 15:53:29 -0400 |
---|---|---|
committer | Hari Khalsa <hkhalsa@10gen.com> | 2014-07-21 11:43:02 -0400 |
commit | d66dd1a020e5e0890ab17f2e58be38be312591e4 (patch) | |
tree | b3b76f57d62c361efbb4903baa1f976ec3af1a71 /src/mongo/tools | |
parent | 63bca554b175f27451876df5a975f43dc79f55ee (diff) | |
download | mongo-d66dd1a020e5e0890ab17f2e58be38be312591e4.tar.gz |
SERVER-14413 access global storage mgr via global environment
Diffstat (limited to 'src/mongo/tools')
-rw-r--r-- | src/mongo/tools/tool.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mongo/tools/tool.cpp b/src/mongo/tools/tool.cpp index f71b16b3db3..be176133832 100644 --- a/src/mongo/tools/tool.cpp +++ b/src/mongo/tools/tool.cpp @@ -44,7 +44,7 @@ #include "mongo/db/auth/authz_manager_external_state_mock.h" #include "mongo/db/client.h" #include "mongo/db/global_environment_experiment.h" -#include "mongo/db/global_environment_noop.h" +#include "mongo/db/global_environment_d.h" #include "mongo/db/json.h" #include "mongo/db/repl/repl_coordinator_global.h" #include "mongo/db/repl/repl_coordinator_mock.h" @@ -78,7 +78,8 @@ namespace mongo { new AuthzManagerExternalStateMock())); repl::ReplSettings replSettings; repl::setGlobalReplicationCoordinator(new repl::ReplicationCoordinatorMock(replSettings)); - setGlobalEnvironment(new GlobalEnvironmentNoop()); + // We don't use the noop environment here since we actually need the storage engine... + setGlobalEnvironment(new GlobalEnvironmentMongoD()); return Status::OK(); } |