summaryrefslogtreecommitdiff
path: root/src/mongo/db/commands/collection_to_capped.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/commands/collection_to_capped.cpp')
-rw-r--r--src/mongo/db/commands/collection_to_capped.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/db/commands/collection_to_capped.cpp b/src/mongo/db/commands/collection_to_capped.cpp
index 9e2c33a9a87..b5a5aa90574 100644
--- a/src/mongo/db/commands/collection_to_capped.cpp
+++ b/src/mongo/db/commands/collection_to_capped.cpp
@@ -36,7 +36,7 @@
#include "mongo/db/client.h"
#include "mongo/db/commands.h"
#include "mongo/db/db_raii.h"
-#include "mongo/db/global_environment_experiment.h"
+#include "mongo/db/service_context.h"
#include "mongo/db/index_builder.h"
#include "mongo/db/op_observer.h"
#include "mongo/db/operation_context_impl.h"
@@ -126,7 +126,7 @@ namespace {
WriteUnitOfWork wunit(txn);
toCollection->insertDocument( txn, obj, true );
if ( logForReplication ) {
- getGlobalEnvironment()->getOpObserver()->onInsert(txn, toNs, obj);
+ getGlobalServiceContext()->getOpObserver()->onInsert(txn, toNs, obj);
}
wunit.commit();
}
@@ -300,7 +300,7 @@ namespace {
return appendCommandStatus( result, status );
if (!fromRepl) {
- getGlobalEnvironment()->getOpObserver()->onConvertToCapped(
+ getGlobalServiceContext()->getOpObserver()->onConvertToCapped(
txn,
NamespaceString(longSource),
size);