summaryrefslogtreecommitdiff
path: root/src/mongo/db/storage/devnull
diff options
context:
space:
mode:
authorKyle Suarez <ksuarz@gmail.com>2016-04-15 16:42:29 -0400
committerKyle Suarez <ksuarz@gmail.com>2016-04-15 16:42:42 -0400
commit23a938791982e014488f654eb69ced870ef98034 (patch)
treec8124f3f0fd6bef3191664396965dc93df0d9d16 /src/mongo/db/storage/devnull
parenta4103bd3009df79ed0c31b03ee6ec729eeed61a7 (diff)
downloadmongo-23a938791982e014488f654eb69ced870ef98034.tar.gz
SERVER-23735 ephemeral KVEngines aren't durable
Ephemeral storage engines that do no journaling should not report themselves as durable. Tests that run with ephemeral storage engines should not run any test that requires journaling.
Diffstat (limited to 'src/mongo/db/storage/devnull')
-rw-r--r--src/mongo/db/storage/devnull/devnull_kv_engine.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mongo/db/storage/devnull/devnull_kv_engine.h b/src/mongo/db/storage/devnull/devnull_kv_engine.h
index 47640704938..18352232cb7 100644
--- a/src/mongo/db/storage/devnull/devnull_kv_engine.h
+++ b/src/mongo/db/storage/devnull/devnull_kv_engine.h
@@ -80,8 +80,11 @@ public:
return false;
}
+ /**
+ * devnull does no journaling, so don't report the engine as durable.
+ */
virtual bool isDurable() const {
- return true;
+ return false;
}
virtual bool isEphemeral() const {