summaryrefslogtreecommitdiff
path: root/src/mongo/db/instance.cpp
diff options
context:
space:
mode:
authorAndy Schwerin <schwerin@mongodb.com>2015-04-02 15:48:57 -0400
committerAndy Schwerin <schwerin@mongodb.com>2015-04-03 15:13:55 -0400
commit789ad901737cfed9f383e467464c23943c94ecf4 (patch)
treeabda24f89ace5793aad5212c1cfde9b57e4f2c9a /src/mongo/db/instance.cpp
parent78aa03b4eda2784ae67eba32d6b103166f1c57ad (diff)
downloadmongo-789ad901737cfed9f383e467464c23943c94ecf4.tar.gz
SERVER-17878 Rename GlobalEnvironmentExperiment to ServiceContext.
Diffstat (limited to 'src/mongo/db/instance.cpp')
-rw-r--r--src/mongo/db/instance.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/mongo/db/instance.cpp b/src/mongo/db/instance.cpp
index a60b2714dd1..2ab4f1e58a3 100644
--- a/src/mongo/db/instance.cpp
+++ b/src/mongo/db/instance.cpp
@@ -58,7 +58,7 @@
#include "mongo/db/dbmessage.h"
#include "mongo/db/exec/delete.h"
#include "mongo/db/exec/update.h"
-#include "mongo/db/global_environment_experiment.h"
+#include "mongo/db/service_context.h"
#include "mongo/db/global_optime.h"
#include "mongo/db/instance.h"
#include "mongo/db/introspect.h"
@@ -174,7 +174,7 @@ namespace mongo {
else {
log() << "going to kill op: " << e << endl;
obj = fromjson("{\"info\":\"attempting to kill op\"}");
- getGlobalEnvironment()->killOperation( (unsigned) e.number() );
+ getGlobalServiceContext()->killOperation( (unsigned) e.number() );
}
}
replyToQuery(0, m, dbresponse, obj);
@@ -978,7 +978,7 @@ namespace {
if ( !collection ) {
collection = ctx.db()->createCollection( txn, ns );
verify( collection );
- getGlobalEnvironment()->getOpObserver()->onCreateCollection(
+ getGlobalServiceContext()->getOpObserver()->onCreateCollection(
txn,
NamespaceString(ns),
CollectionOptions());
@@ -986,7 +986,7 @@ namespace {
StatusWith<RecordId> status = collection->insertDocument( txn, js, true );
uassertStatusOK( status.getStatus() );
- getGlobalEnvironment()->getOpObserver()->onInsert(txn, std::string(ns), js);
+ getGlobalServiceContext()->getOpObserver()->onInsert(txn, std::string(ns), js);
wunit.commit();
break;
}
@@ -1201,7 +1201,7 @@ namespace {
log(LogComponent::kNetwork) << "shutdown: going to close sockets..." << endl;
boost::thread close_socket_thread( stdx::bind(MessagingPort::closeAllSockets, 0) );
- getGlobalEnvironment()->shutdownGlobalStorageEngineCleanly();
+ getGlobalServiceContext()->shutdownGlobalStorageEngineCleanly();
}
// shutdownLock
@@ -1225,13 +1225,13 @@ namespace {
boost::lock_guard<boost::mutex> lockguard(shutdownLock);
// Global storage engine may not be started in all cases before we exit
- if (getGlobalEnvironment()->getGlobalStorageEngine() == NULL) {
+ if (getGlobalServiceContext()->getGlobalStorageEngine() == NULL) {
dbexit(code); // returns only under a windows service
invariant(code == EXIT_WINDOWS_SERVICE_STOP);
return;
}
- getGlobalEnvironment()->setKillAllOperations();
+ getGlobalServiceContext()->setKillAllOperations();
repl::getGlobalReplicationCoordinator()->shutdown();