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/util/heap_profiler.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/util/heap_profiler.cpp')
-rw-r--r-- | src/mongo/util/heap_profiler.cpp | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/src/mongo/util/heap_profiler.cpp b/src/mongo/util/heap_profiler.cpp index 74b3902fc42..7c39be5e84d 100644 --- a/src/mongo/util/heap_profiler.cpp +++ b/src/mongo/util/heap_profiler.cpp @@ -586,12 +586,11 @@ private: // Stats subsection. BSONObjBuilder statsBuilder(builder.subobjStart("stats")); - statsBuilder.appendNumber("totalActiveBytes", static_cast<long long>(totalActiveBytes)); - statsBuilder.appendNumber("bytesAllocated", static_cast<long long>(bytesAllocated)); - statsBuilder.appendNumber("numStacks", static_cast<long long>(stackHashTable.size())); - statsBuilder.appendNumber("currentObjEntries", static_cast<long long>(objHashTable.size())); - statsBuilder.appendNumber("maxObjEntriesUsed", - static_cast<long long>(objHashTable.maxSizeSeen())); + statsBuilder.appendNumber("totalActiveBytes", totalActiveBytes); + statsBuilder.appendNumber("bytesAllocated", bytesAllocated); + statsBuilder.appendNumber("numStacks", stackHashTable.size()); + statsBuilder.appendNumber("currentObjEntries", objHashTable.size()); + statsBuilder.appendNumber("maxObjEntriesUsed", objHashTable.maxSizeSeen()); statsBuilder.doneFast(); // Guard against races updating the StackInfo bson representation. @@ -636,8 +635,7 @@ private: std::ostringstream shortName; shortName << "stack" << stackInfo->stackNum; BSONObjBuilder stackBuilder(stacksBuilder.subobjStart(shortName.str())); - stackBuilder.appendNumber("activeBytes", - static_cast<long long>(stackInfo->activeBytes)); + stackBuilder.appendNumber("activeBytes", stackInfo->activeBytes); } stacksBuilder.doneFast(); |