summaryrefslogtreecommitdiff
path: root/src/mongo/db/sorter
diff options
context:
space:
mode:
authorauto-revert-processor <dev-prod-dag@mongodb.com>2022-10-21 01:19:01 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-10-21 02:15:52 +0000
commitfab997bf60ede64f7e5ca78b15a9ad2661e88e6a (patch)
tree28f07cd8b1ec7d094bf65e3b38adce9f140fa025 /src/mongo/db/sorter
parent7bad8c9b694f599e49b4699f2dd149ebe210d188 (diff)
downloadmongo-fab997bf60ede64f7e5ca78b15a9ad2661e88e6a.tar.gz
Revert "SERVER-53657 Add 'spillFileSizeBytes' and 'numBytesSpilledEstimate' to $group execution stats explain output"
This reverts commit 7cda7dd4df551cb5ff95b0a913b6dbb812320def.
Diffstat (limited to 'src/mongo/db/sorter')
-rw-r--r--src/mongo/db/sorter/sorter_stats.cpp1
-rw-r--r--src/mongo/db/sorter/sorter_stats.h6
-rw-r--r--src/mongo/db/sorter/sorter_test.cpp1
3 files changed, 0 insertions, 8 deletions
diff --git a/src/mongo/db/sorter/sorter_stats.cpp b/src/mongo/db/sorter/sorter_stats.cpp
index 6b4a33b5864..ec68b02efcd 100644
--- a/src/mongo/db/sorter/sorter_stats.cpp
+++ b/src/mongo/db/sorter/sorter_stats.cpp
@@ -52,7 +52,6 @@ void SorterStats::setSpilledRanges(long long spills) {
SorterFileStats::SorterFileStats(SorterTracker* sorterTracker) : _sorterTracker(sorterTracker){};
void SorterFileStats::addSpilledDataSize(long long data) {
- _bytesSpilled += data;
if (_sorterTracker) {
_sorterTracker->bytesSpilled.fetchAndAdd(data);
}
diff --git a/src/mongo/db/sorter/sorter_stats.h b/src/mongo/db/sorter/sorter_stats.h
index a536333e27f..05bfa8998d4 100644
--- a/src/mongo/db/sorter/sorter_stats.h
+++ b/src/mongo/db/sorter/sorter_stats.h
@@ -48,14 +48,8 @@ public:
AtomicWord<long long> opened;
AtomicWord<long long> closed;
- long long bytesSpilled() const {
- return _bytesSpilled;
- }
-
private:
SorterTracker* _sorterTracker;
-
- long long _bytesSpilled = 0;
};
class SorterStats {
diff --git a/src/mongo/db/sorter/sorter_test.cpp b/src/mongo/db/sorter/sorter_test.cpp
index 89f69eeeb61..12e433217ef 100644
--- a/src/mongo/db/sorter/sorter_test.cpp
+++ b/src/mongo/db/sorter/sorter_test.cpp
@@ -351,7 +351,6 @@ public:
ASSERT_EQ(sorterFileStats.opened.load(), 2);
ASSERT_EQ(sorterFileStats.closed.load(), 2);
ASSERT_LTE(sorterTracker.bytesSpilled.load(), currentFileSize);
- ASSERT_LTE(sorterFileStats.bytesSpilled(), currentFileSize);
ASSERT(boost::filesystem::is_empty(tempDir.path()));
}