summaryrefslogtreecommitdiff
path: root/src/mongo/db/curop.cpp
diff options
context:
space:
mode:
authorGregory Wlodarek <gregory.wlodarek@mongodb.com>2020-05-01 16:17:36 -0400
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-05-01 20:30:57 +0000
commit120836e75233ad5123450b1a23c4aa1ac7ab9d88 (patch)
tree7647ab0c23b16cdecca530c5d03d07372e8b990d /src/mongo/db/curop.cpp
parent726c65f4857fdad05075de8277c7d4a7fef92b70 (diff)
downloadmongo-120836e75233ad5123450b1a23c4aa1ac7ab9d88.tar.gz
SERVER-47854 Validation reports MB of I/O per second in the currentOp command response
Diffstat (limited to 'src/mongo/db/curop.cpp')
-rw-r--r--src/mongo/db/curop.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mongo/db/curop.cpp b/src/mongo/db/curop.cpp
index 6b19e925539..301d3cdd5c8 100644
--- a/src/mongo/db/curop.cpp
+++ b/src/mongo/db/curop.cpp
@@ -659,6 +659,14 @@ void CurOp::reportState(OperationContext* opCtx, BSONObjBuilder* builder, bool t
}
builder->append("numYields", _numYields);
+
+ if (_debug.dataThroughputLastSecond) {
+ builder->append("dataThroughputLastSecond", *_debug.dataThroughputLastSecond);
+ }
+
+ if (_debug.dataThroughputAverage) {
+ builder->append("dataThroughputAverage", *_debug.dataThroughputAverage);
+ }
}
namespace {