@@ -227,7 +227,6 @@ Status abortIndexBuild(OperationContext* opCtx,
227227void createIndexForApplyOps (OperationContext* opCtx,
228228 const BSONObj& indexSpec,
229229 const NamespaceString& indexNss,
230- IncrementOpsAppliedStatsFn incrementOpsAppliedStats,
231230 OplogApplication::Mode mode) {
232231 invariant (opCtx->lockState ()->isCollectionLockedForMode (indexNss, MODE_X));
233232
@@ -285,10 +284,6 @@ void createIndexForApplyOps(OperationContext* opCtx,
285284 }
286285
287286 opCtx->recoveryUnit ()->abandonSnapshot ();
288-
289- if (incrementOpsAppliedStats) {
290- incrementOpsAppliedStats ();
291- }
292287}
293288
294289/* we write to local.oplog.rs:
@@ -745,7 +740,7 @@ const StringMap<ApplyOpMetadata> kOpsMap = {
745740 BSONObj indexSpec = cmd.removeField (" createIndexes" );
746741 Lock::DBLock dbLock (opCtx, nss.db (), MODE_IX);
747742 Lock::CollectionLock collLock (opCtx, nss, MODE_X);
748- createIndexForApplyOps (opCtx, indexSpec, nss, {}, mode);
743+ createIndexForApplyOps (opCtx, indexSpec, nss, mode);
749744 return Status::OK ();
750745 },
751746 {ErrorCodes::IndexAlreadyExists,
0 commit comments