diff options
author | Bynn Lee <bynn.lee@mongodb.com> | 2021-02-24 21:34:16 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-02-25 01:55:59 +0000 |
commit | b8107b8e481ae7073d30304196a3028145c80634 (patch) | |
tree | cc954ce4d68fd790a38ef7f1fecc825c14f6d9b6 /src/mongo/db/curop.cpp | |
parent | bff2d6e263a19c85eca7058ceb829ff55b1e2d63 (diff) | |
download | mongo-b8107b8e481ae7073d30304196a3028145c80634.tar.gz |
Revert "SERVER-43762 tighten the overload set for BSONObjBuilder::appendNumber"
This reverts commit 3307ba57eef2dfff9abe2413e39058ac9451ec04.
Diffstat (limited to 'src/mongo/db/curop.cpp')
-rw-r--r-- | src/mongo/db/curop.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/db/curop.cpp b/src/mongo/db/curop.cpp index 6a2e0aead94..3898a2f98ab 100644 --- a/src/mongo/db/curop.cpp +++ b/src/mongo/db/curop.cpp @@ -1269,7 +1269,7 @@ void OpDebug::append(OperationContext* opCtx, b.append("remoteOpWaitMillis", durationCount<Milliseconds>(*remoteOpWaitTime)); } - b.appendNumber("millis", durationCount<Milliseconds>(executionTime)); + b.appendIntOrLL("millis", durationCount<Milliseconds>(executionTime)); if (!curop.getPlanSummary().empty()) { b.append("planSummary", curop.getPlanSummary()); @@ -1546,10 +1546,10 @@ std::function<BSONObj(ProfileFilter::Args)> OpDebug::appendStaged(StringSet requ // the profiler (OpDebug::append) and the log file (OpDebug::report), so for the profile filter // we support both names. addIfNeeded("millis", [](auto field, auto args, auto& b) { - b.appendNumber(field, durationCount<Milliseconds>(args.op.executionTime)); + b.appendIntOrLL(field, durationCount<Milliseconds>(args.op.executionTime)); }); addIfNeeded("durationMillis", [](auto field, auto args, auto& b) { - b.appendNumber(field, durationCount<Milliseconds>(args.op.executionTime)); + b.appendIntOrLL(field, durationCount<Milliseconds>(args.op.executionTime)); }); addIfNeeded("planSummary", [](auto field, auto args, auto& b) { |