diff options
Diffstat (limited to 'src/mongo/db/sorter')
-rw-r--r-- | src/mongo/db/sorter/sorter_stats.cpp | 1 | ||||
-rw-r--r-- | src/mongo/db/sorter/sorter_stats.h | 6 | ||||
-rw-r--r-- | src/mongo/db/sorter/sorter_test.cpp | 1 |
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())); } |