diff options
author | Kyle Suarez <ksuarz@gmail.com> | 2016-04-15 16:42:29 -0400 |
---|---|---|
committer | Kyle Suarez <ksuarz@gmail.com> | 2016-04-15 16:42:42 -0400 |
commit | 23a938791982e014488f654eb69ced870ef98034 (patch) | |
tree | c8124f3f0fd6bef3191664396965dc93df0d9d16 /src/mongo/db/storage/devnull | |
parent | a4103bd3009df79ed0c31b03ee6ec729eeed61a7 (diff) | |
download | mongo-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.h | 5 |
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 { |