summaryrefslogtreecommitdiff
path: root/src/mongo/db/storage/storage_engine.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/storage/storage_engine.h')
-rw-r--r--src/mongo/db/storage/storage_engine.h13
1 files changed, 5 insertions, 8 deletions
diff --git a/src/mongo/db/storage/storage_engine.h b/src/mongo/db/storage/storage_engine.h
index 7a973d9883f..313dcb8c439 100644
--- a/src/mongo/db/storage/storage_engine.h
+++ b/src/mongo/db/storage/storage_engine.h
@@ -100,8 +100,7 @@ public:
virtual ~Factory() {}
/**
- * Return a new instance of the StorageEngine. The lockFile parameter may be null if
- * params.readOnly is set. Caller owns the returned pointer.
+ * Return a new instance of the StorageEngine. Caller owns the returned pointer.
*/
virtual std::unique_ptr<StorageEngine> create(
OperationContext* opCtx,
@@ -161,13 +160,11 @@ public:
virtual BSONObj createMetadataOptions(const StorageGlobalParams& params) const = 0;
/**
- * Returns whether the engine supports read-only mode. If read-only mode is enabled, the
- * engine may be started on a read-only filesystem (either mounted read-only or with
- * read-only permissions). If readOnly mode is enabled, it is undefined behavior to call
- * methods that write data (e.g. insertRecord). This method is provided on the Factory
- * because it must be called before the storageEngine is instantiated.
+ * Returns whether the engine supports queryable backup mode. If queryable backup mode is
+ * enabled, user writes are not permitted but internally generated writes are still
+ * permitted.
*/
- virtual bool supportsReadOnly() const {
+ virtual bool supportsQueryableBackupMode() const {
return false;
}
};