summaryrefslogtreecommitdiff
path: root/src/mongo/tools
diff options
context:
space:
mode:
authorHari Khalsa <hkhalsa@10gen.com>2014-07-16 15:53:29 -0400
committerHari Khalsa <hkhalsa@10gen.com>2014-07-21 11:43:02 -0400
commitd66dd1a020e5e0890ab17f2e58be38be312591e4 (patch)
treeb3b76f57d62c361efbb4903baa1f976ec3af1a71 /src/mongo/tools
parent63bca554b175f27451876df5a975f43dc79f55ee (diff)
downloadmongo-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.cpp5
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();
}