diff options
author | Patrick Freed <patrick.freed@mongodb.com> | 2023-02-14 18:27:52 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2023-02-15 00:30:58 +0000 |
commit | ff7fcd42e84317e2a34e0b413ee4cc1d9be66884 (patch) | |
tree | 3d328358d82419b805c1682ff6cbd3cdc7437732 /src/mongo/db/index_builds_coordinator_mongod.cpp | |
parent | 9b7a803ba98afab6b101c32fe44f9043c170b1b5 (diff) | |
download | mongo-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.cpp | 3 |
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); |