summaryrefslogtreecommitdiff
path: root/src/mongo/db/index_builds_coordinator_mongod.cpp
diff options
context:
space:
mode:
authorPatrick Freed <patrick.freed@mongodb.com>2023-02-14 18:27:52 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2023-02-15 00:30:58 +0000
commitff7fcd42e84317e2a34e0b413ee4cc1d9be66884 (patch)
tree3d328358d82419b805c1682ff6cbd3cdc7437732 /src/mongo/db/index_builds_coordinator_mongod.cpp
parent9b7a803ba98afab6b101c32fe44f9043c170b1b5 (diff)
downloadmongo-ff7fcd42e84317e2a34e0b413ee4cc1d9be66884.tar.gz
SERVER-73307 Ensure CurOpStack always has access to its OperationContext (#10536)
This also ensures base lock stats are properly subtracted out when getting the lock stats for a given sub operation (fixes SERVER-73571).
Diffstat (limited to 'src/mongo/db/index_builds_coordinator_mongod.cpp')
-rw-r--r--src/mongo/db/index_builds_coordinator_mongod.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/mongo/db/index_builds_coordinator_mongod.cpp b/src/mongo/db/index_builds_coordinator_mongod.cpp
index 327606c75e2..f8062f844d1 100644
--- a/src/mongo/db/index_builds_coordinator_mongod.cpp
+++ b/src/mongo/db/index_builds_coordinator_mongod.cpp
@@ -423,8 +423,7 @@ IndexBuildsCoordinatorMongod::_startIndexBuild(OperationContext* opCtx,
// Logs the index build statistics if it took longer than the server parameter `slowMs`
// to complete.
CurOp::get(opCtx.get())
- ->completeAndLogOperation(opCtx.get(),
- MONGO_LOGV2_DEFAULT_COMPONENT,
+ ->completeAndLogOperation(MONGO_LOGV2_DEFAULT_COMPONENT,
CollectionCatalog::get(opCtx.get())
->getDatabaseProfileSettings(nss.dbName())
.filter);