summaryrefslogtreecommitdiff
path: root/src/mongo/db/service_context_d_test_fixture.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/service_context_d_test_fixture.h')
-rw-r--r--src/mongo/db/service_context_d_test_fixture.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mongo/db/service_context_d_test_fixture.h b/src/mongo/db/service_context_d_test_fixture.h
index 8b21eaf0b2e..3973a344ffd 100644
--- a/src/mongo/db/service_context_d_test_fixture.h
+++ b/src/mongo/db/service_context_d_test_fixture.h
@@ -82,8 +82,16 @@ protected:
return std::move(*this);
}
+ Options ephemeral(bool ephemeral) {
+ _ephemeral = ephemeral;
+ return std::move(*this);
+ }
+
private:
std::string _engine = "wiredTiger";
+ // We use ephemeral instances by default to advise Storage Engines (in particular
+ // WiredTiger) not to perform Disk I/O.
+ bool _ephemeral = true;
RepairAction _repair = RepairAction::kNoRepair;
StorageEngineInitFlags _initFlags = kDefaultStorageEngineInitFlags;
bool _useReplSettings = false;