summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl/oplog_applier_impl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/repl/oplog_applier_impl.cpp')
-rw-r--r--src/mongo/db/repl/oplog_applier_impl.cpp5
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);
}
}