summaryrefslogtreecommitdiff
path: root/src/mongo/db/storage/mmap_v1/mmap_v1_extent_manager.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/storage/mmap_v1/mmap_v1_extent_manager.h')
-rw-r--r--src/mongo/db/storage/mmap_v1/mmap_v1_extent_manager.h12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/mongo/db/storage/mmap_v1/mmap_v1_extent_manager.h b/src/mongo/db/storage/mmap_v1/mmap_v1_extent_manager.h
index a2f2931e1b4..a66a19f8fb3 100644
--- a/src/mongo/db/storage/mmap_v1/mmap_v1_extent_manager.h
+++ b/src/mongo/db/storage/mmap_v1/mmap_v1_extent_manager.h
@@ -76,6 +76,12 @@ class MmapV1ExtentManager : public ExtentManager {
MONGO_DISALLOW_COPYING(MmapV1ExtentManager);
public:
+ class Factory : public ExtentManager::Factory {
+ virtual std::unique_ptr<ExtentManager> create(StringData dbname,
+ StringData path,
+ bool directoryPerDB) final;
+ };
+
/**
* @param freeListDetails this is a reference into the .ns file
* while a bit odd, this is not a layer violation as extents
@@ -141,10 +147,10 @@ public:
/**
* Not thread safe, requires a database exclusive lock
*/
- DataFileVersion getFileFormat(OperationContext* txn) const;
- void setFileFormat(OperationContext* txn, DataFileVersion newVersion);
+ DataFileVersion getFileFormat(OperationContext* txn) const final;
+ void setFileFormat(OperationContext* txn, DataFileVersion newVersion) final;
- const DataFile* getOpenFile(int n) const {
+ const DataFile* getOpenFile(int n) const final {
return _getOpenFile(n);
}