diff options
author | Louis Williams <louis.williams@mongodb.com> | 2020-11-02 16:36:20 -0500 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-11-02 22:02:31 +0000 |
commit | 12646ec5380bcc0dc10c66069a6583c653683922 (patch) | |
tree | 364c06ade130e8e386ea41fb88cfa90647fb7daa /src/mongo/db/introspect.cpp | |
parent | bccb5dc1eb8f7b731f4e20a292abea2193182cfd (diff) | |
download | mongo-12646ec5380bcc0dc10c66069a6583c653683922.tar.gz |
SERVER-50865 Collect resource consumption metrics for index builds
Diffstat (limited to 'src/mongo/db/introspect.cpp')
-rw-r--r-- | src/mongo/db/introspect.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/introspect.cpp b/src/mongo/db/introspect.cpp index 89fea0c89cb..12dc4c200f1 100644 --- a/src/mongo/db/introspect.cpp +++ b/src/mongo/db/introspect.cpp @@ -71,7 +71,7 @@ void profile(OperationContext* opCtx, NetworkOp op) { if (metricsCollector.hasCollectedMetrics()) { BSONObjBuilder metricsBuilder = b.subobjStart("operationMetrics"); const auto& metrics = metricsCollector.getMetrics(); - metrics.toFlatBsonAllFields(&metricsBuilder); + metrics.toBson(&metricsBuilder); metricsBuilder.done(); } |