diff options
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, 5 insertions, 5 deletions
diff --git a/src/mongo/db/storage/devnull/devnull_kv_engine.cpp b/src/mongo/db/storage/devnull/devnull_kv_engine.cpp index 6ae745c5587..e9437a18908 100644 --- a/src/mongo/db/storage/devnull/devnull_kv_engine.cpp +++ b/src/mongo/db/storage/devnull/devnull_kv_engine.cpp @@ -261,13 +261,13 @@ SortedDataInterface* DevNullKVEngine::getSortedDataInterface(OperationContext* o return new DevNullSortedDataInterface(); } -bool DevNullKVEngine::isCacheUnderPressure(OperationContext* opCtx) const { - return (_cachePressureForTest >= snapshotWindowParams.cachePressureThreshold.load()); +int64_t DevNullKVEngine::getCacheOverflowTableInsertCount(OperationContext* opCtx) const { + return _overflowTableInsertCountForTest; } -void DevNullKVEngine::setCachePressureForTest(int pressure) { - invariant(pressure >= 0 && pressure <= 100); - _cachePressureForTest = pressure; +void DevNullKVEngine::setCacheOverflowTableInsertCountForTest(int insertsCount) { + invariant(insertsCount >= 0); + _overflowTableInsertCountForTest = insertsCount; } StatusWith<std::vector<std::string>> DevNullKVEngine::beginNonBlockingBackup( |