diff options
author | Andy Schwerin <schwerin@mongodb.com> | 2015-04-02 15:48:57 -0400 |
---|---|---|
committer | Andy Schwerin <schwerin@mongodb.com> | 2015-04-03 15:13:55 -0400 |
commit | 789ad901737cfed9f383e467464c23943c94ecf4 (patch) | |
tree | abda24f89ace5793aad5212c1cfde9b57e4f2c9a /src/mongo/db/commands/write_commands | |
parent | 78aa03b4eda2784ae67eba32d6b103166f1c57ad (diff) | |
download | mongo-789ad901737cfed9f383e467464c23943c94ecf4.tar.gz |
SERVER-17878 Rename GlobalEnvironmentExperiment to ServiceContext.
Diffstat (limited to 'src/mongo/db/commands/write_commands')
-rw-r--r-- | src/mongo/db/commands/write_commands/batch_executor.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/db/commands/write_commands/batch_executor.cpp b/src/mongo/db/commands/write_commands/batch_executor.cpp index 21f024513c3..594a121c76c 100644 --- a/src/mongo/db/commands/write_commands/batch_executor.cpp +++ b/src/mongo/db/commands/write_commands/batch_executor.cpp @@ -45,7 +45,7 @@ #include "mongo/db/db_raii.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/instance.h" #include "mongo/db/introspect.h" #include "mongo/db/lasterror.h" @@ -1072,7 +1072,7 @@ namespace mongo { request->getTargetingNS()))); return false; } - getGlobalEnvironment()->getOpObserver()->onCreateCollection( + getGlobalServiceContext()->getOpObserver()->onCreateCollection( txn, NamespaceString(request->getTargetingNS()), CollectionOptions()); @@ -1199,7 +1199,7 @@ namespace mongo { result->setError(toWriteError(status.getStatus())); } else { - getGlobalEnvironment()->getOpObserver()->onInsert(txn, insertNS, docToInsert); + getGlobalServiceContext()->getOpObserver()->onInsert(txn, insertNS, docToInsert); result->getStats().n = 1; wunit.commit(); } |