summaryrefslogtreecommitdiff
path: root/src/mongo/db/storage/storage_engine.h
diff options
context:
space:
mode:
authorMathias Stearn <mathias@10gen.com>2014-10-20 17:18:44 -0400
committerMathias Stearn <mathias@10gen.com>2014-10-27 13:07:21 -0400
commit5e002ec6062113568a6575f64b0d2d4de27210b3 (patch)
tree5aee10342dfb77164615f715d050d8b17160d0f5 /src/mongo/db/storage/storage_engine.h
parent6d7f968a9495b504bea981e392f5ec60a947123e (diff)
downloadmongo-5e002ec6062113568a6575f64b0d2d4de27210b3.tar.gz
SERVER-13635 Add StorageEngine::isMmapV1()
Diffstat (limited to 'src/mongo/db/storage/storage_engine.h')
-rw-r--r--src/mongo/db/storage/storage_engine.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mongo/db/storage/storage_engine.h b/src/mongo/db/storage/storage_engine.h
index 04d896fc64d..5782174bc34 100644
--- a/src/mongo/db/storage/storage_engine.h
+++ b/src/mongo/db/storage/storage_engine.h
@@ -107,6 +107,12 @@ namespace mongo {
*/
virtual bool supportsDocLocking() const = 0;
+
+ /**
+ * Only MMAPv1 should override this and return true to trigger MMAPv1-specific behavior.
+ */
+ virtual bool isMmapV1() const { return false; }
+
/**
* Closes all file handles associated with a database.
*/