summaryrefslogtreecommitdiff
path: root/src/mongo/db/storage/storage_engine.h
diff options
context:
space:
mode:
authorhaleyConnelly <haley.connelly@10gen.com>2017-08-15 13:06:53 -0400
committerhaleyConnelly <haley.connelly@10gen.com>2017-08-18 15:15:32 -0400
commitb59bb88b65699b4f51e4a2139064a80f2b6615ca (patch)
tree4f50437cfa6b683eebd9535fcbe4fd3cbd1bb87d /src/mongo/db/storage/storage_engine.h
parent9999bc8a0915a34c3fd898f757008b68c5c780a2 (diff)
downloadmongo-b59bb88b65699b4f51e4a2139064a80f2b6615ca.tar.gz
SERVER-30658 Add DBLevelLocking to check storage engine API
Diffstat (limited to 'src/mongo/db/storage/storage_engine.h')
-rw-r--r--src/mongo/db/storage/storage_engine.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mongo/db/storage/storage_engine.h b/src/mongo/db/storage/storage_engine.h
index cee183e9f8c..5e20290e161 100644
--- a/src/mongo/db/storage/storage_engine.h
+++ b/src/mongo/db/storage/storage_engine.h
@@ -179,6 +179,13 @@ public:
virtual bool supportsDocLocking() const = 0;
/**
+ * Returns whether the storage engine supports locking at a database level.
+ */
+ virtual bool supportsDBLocking() const {
+ return true;
+ }
+
+ /**
* Returns whether the engine supports a journalling concept or not.
*/
virtual bool isDurable() const = 0;