diff options
author | haleyConnelly <haley.connelly@10gen.com> | 2017-08-15 13:06:53 -0400 |
---|---|---|
committer | haleyConnelly <haley.connelly@10gen.com> | 2017-08-18 15:15:32 -0400 |
commit | b59bb88b65699b4f51e4a2139064a80f2b6615ca (patch) | |
tree | 4f50437cfa6b683eebd9535fcbe4fd3cbd1bb87d /src/mongo/db/storage/storage_engine.h | |
parent | 9999bc8a0915a34c3fd898f757008b68c5c780a2 (diff) | |
download | mongo-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.h | 7 |
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; |