diff options
| author | Lucas de Castro Borges <lucas@gnuabordo.com.br> | 2025-02-18 17:02:53 -0300 |
|---|---|---|
| committer | Lucas de Castro Borges <lucas@gnuabordo.com.br> | 2025-02-18 17:02:53 -0300 |
| commit | 959575a5ca598bf5f37fb5cebe7ed1d80d3d71f7 (patch) | |
| tree | acc8d60aedb12b70048e676e8a7349deb0010db8 /src/mongo/db/repl/oplog_applier_impl.cpp | |
| parent | 76588293975fc059cf076779e4283e6ffaf8afff (diff) | |
New upstream version 6.0.20upstream
Diffstat (limited to 'src/mongo/db/repl/oplog_applier_impl.cpp')
| -rw-r--r-- | src/mongo/db/repl/oplog_applier_impl.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mongo/db/repl/oplog_applier_impl.cpp b/src/mongo/db/repl/oplog_applier_impl.cpp index 4f8c3f9427e..3ce566c713b 100644 --- a/src/mongo/db/repl/oplog_applier_impl.cpp +++ b/src/mongo/db/repl/oplog_applier_impl.cpp @@ -103,6 +103,11 @@ Status finishAndLogApply(OperationContext* opCtx, attrs.add("duration", Milliseconds(opDuration)); + // Obtain storage specific statistics and log them if they exist. + CurOp::get(opCtx)->debug().storageStats = + opCtx->recoveryUnit()->computeOperationStatisticsSinceLastCall(); + CurOp::get(opCtx)->debug().reportStorageStats(&attrs); + LOGV2(51801, "Applied op", attrs); } } |
