diff options
author | Lingzhi Deng <lingzhi.deng@mongodb.com> | 2020-05-07 16:21:38 -0400 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-05-13 15:47:52 +0000 |
commit | 84fd6eb9c0a700329dc0750261d05dd6741791cc (patch) | |
tree | 297aa121c0315d4bbaf8c323a2ac4c494448b9b1 /src/mongo/db/storage/devnull/devnull_kv_engine.cpp | |
parent | 4497a21aae1bf9eabce5394798582f113d2f5a45 (diff) | |
download | mongo-84fd6eb9c0a700329dc0750261d05dd6741791cc.tar.gz |
SERVER-47997: Remove cachePressureThreshold and isCacheUnderPressuref1b99df5
Diffstat (limited to 'src/mongo/db/storage/devnull/devnull_kv_engine.cpp')
-rw-r--r-- | src/mongo/db/storage/devnull/devnull_kv_engine.cpp | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/mongo/db/storage/devnull/devnull_kv_engine.cpp b/src/mongo/db/storage/devnull/devnull_kv_engine.cpp index 4bbc0b9dc11..f70b7ad94fd 100644 --- a/src/mongo/db/storage/devnull/devnull_kv_engine.cpp +++ b/src/mongo/db/storage/devnull/devnull_kv_engine.cpp @@ -33,7 +33,6 @@ #include <memory> -#include "mongo/db/snapshot_window_options.h" #include "mongo/db/storage/ephemeral_for_test/ephemeral_for_test_record_store.h" #include "mongo/db/storage/record_store.h" #include "mongo/db/storage/sorted_data_interface.h" @@ -244,15 +243,6 @@ std::unique_ptr<SortedDataInterface> DevNullKVEngine::getSortedDataInterface( return std::make_unique<DevNullSortedDataInterface>(); } -bool DevNullKVEngine::isCacheUnderPressure(OperationContext* opCtx) const { - return (_cachePressureForTest >= snapshotWindowParams.cachePressureThreshold.load()); -} - -void DevNullKVEngine::setCachePressureForTest(int pressure) { - invariant(pressure >= 0 && pressure <= 100); - _cachePressureForTest = pressure; -} - namespace { class StreamingCursorImpl : public StorageEngine::StreamingCursor { |