summaryrefslogtreecommitdiff
path: root/src/mongo/db/commands/mr.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/commands/mr.cpp
parent78aa03b4eda2784ae67eba32d6b103166f1c57ad (diff)
downloadmongo-789ad901737cfed9f383e467464c23943c94ecf4.tar.gz
SERVER-17878 Rename GlobalEnvironmentExperiment to ServiceContext.
Diffstat (limited to 'src/mongo/db/commands/mr.cpp')
-rw-r--r--src/mongo/db/commands/mr.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mongo/db/commands/mr.cpp b/src/mongo/db/commands/mr.cpp
index 15918b1d28f..a3e0ec2d870 100644
--- a/src/mongo/db/commands/mr.cpp
+++ b/src/mongo/db/commands/mr.cpp
@@ -45,7 +45,7 @@
#include "mongo/db/db.h"
#include "mongo/db/db_raii.h"
#include "mongo/db/dbhelpers.h"
-#include "mongo/db/global_environment_experiment.h"
+#include "mongo/db/service_context.h"
#include "mongo/db/index/index_descriptor.h"
#include "mongo/db/instance.h"
#include "mongo/db/matcher/matcher.h"
@@ -441,7 +441,7 @@ namespace mongo {
b.append( "create", nsToCollectionSubstring( _config.tempNamespace ));
b.appendElements( options.toBSON() );
string logNs = nsToDatabase( _config.tempNamespace ) + ".$cmd";
- getGlobalEnvironment()->getOpObserver()->onCreateCollection(
+ getGlobalServiceContext()->getOpObserver()->onCreateCollection(
_txn,
NamespaceString(_config.tempNamespace),
options);
@@ -458,7 +458,7 @@ namespace mongo {
}
// Log the createIndex operation.
string logNs = nsToDatabase( _config.tempNamespace ) + ".system.indexes";
- getGlobalEnvironment()->getOpObserver()->onInsert(_txn, logNs, *it);
+ getGlobalServiceContext()->getOpObserver()->onInsert(_txn, logNs, *it);
}
wuow.commit();
}
@@ -695,7 +695,7 @@ namespace mongo {
BSONObj bo = b.obj();
uassertStatusOK( coll->insertDocument( _txn, bo, true ).getStatus() );
- getGlobalEnvironment()->getOpObserver()->onInsert(_txn, ns, bo);
+ getGlobalServiceContext()->getOpObserver()->onInsert(_txn, ns, bo);
wuow.commit();
}