mirror of https://github.com/mongodb/mongo
SERVER-115371 Delinquency stats are inaccurate for operations with children (#45173)
GitOrigin-RevId: 98743658eb9ff65d0498284f92f75b9ce0b973fb
This commit is contained in:
parent
62201d43f1
commit
a12522f494
|
|
@ -805,7 +805,10 @@ bool CurOp::completeAndLogOperation(const logv2::LogOptions& logOptions,
|
|||
|
||||
_updateExecutionTimers();
|
||||
|
||||
if (!opCtx->inMultiDocumentTransaction()) {
|
||||
// Record execution and delinquency stats for the top-level operation only. We don't want to
|
||||
// double count stats from child operations (e.g., bulk writes, sub-operations in aggregations)
|
||||
// that share the same ExecutionAdmissionContext.
|
||||
if (!parent() && !opCtx->inMultiDocumentTransaction()) {
|
||||
// If we're not in a txn, we record information about delinquent ticket acquisitions to the
|
||||
// Queue's stats.
|
||||
if (auto ticketingSystem =
|
||||
|
|
|
|||
Loading…
Reference in New Issue