From b666c293b8dee59b0bb8926afafc6eebf9c7d21c Mon Sep 17 00:00:00 2001 From: Benety Goh Date: Tue, 6 Dec 2016 15:13:17 -0500 Subject: SERVER-27301 converted OpObserver into an interface. ServiceContext should always return a valid OpObserver implementation. --- src/mongo/db/cloner.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/mongo/db/cloner.cpp') diff --git a/src/mongo/db/cloner.cpp b/src/mongo/db/cloner.cpp index a23ddd58d8e..6b3184eae4b 100644 --- a/src/mongo/db/cloner.cpp +++ b/src/mongo/db/cloner.cpp @@ -424,7 +424,8 @@ void Cloner::copyIndexes(OperationContext* txn, const string targetSystemIndexesCollectionName = to_collection.getSystemIndexesCollection(); const char* createIndexNs = targetSystemIndexesCollectionName.c_str(); for (auto&& infoObj : indexInfoObjs) { - getGlobalServiceContext()->getOpObserver()->onCreateIndex(txn, createIndexNs, infoObj); + getGlobalServiceContext()->getOpObserver()->onCreateIndex( + txn, createIndexNs, infoObj, false); } } wunit.commit(); -- cgit v1.2.1