summaryrefslogtreecommitdiff
path: root/src/mongo/db/storage/devnull/devnull_kv_engine.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/storage/devnull/devnull_kv_engine.cpp')
-rw-r--r--src/mongo/db/storage/devnull/devnull_kv_engine.cpp10
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 {