summaryrefslogtreecommitdiff
path: root/src/mongo/db/storage/mobile/mobile_kv_engine.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/storage/mobile/mobile_kv_engine.cpp')
-rw-r--r--src/mongo/db/storage/mobile/mobile_kv_engine.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mongo/db/storage/mobile/mobile_kv_engine.cpp b/src/mongo/db/storage/mobile/mobile_kv_engine.cpp
index d278bf02a14..4564760c758 100644
--- a/src/mongo/db/storage/mobile/mobile_kv_engine.cpp
+++ b/src/mongo/db/storage/mobile/mobile_kv_engine.cpp
@@ -126,6 +126,13 @@ Status MobileKVEngine::createRecordStore(OperationContext* opCtx,
StringData ident,
const CollectionOptions& options) {
// TODO: eventually will support file renaming but otherwise do not use collection options.
+
+ // Mobile doesn't support capped collections
+ if (options.capped) {
+ return Status(ErrorCodes::InvalidOptions,
+ "Capped collections are not supported by the mobile storage engine");
+ }
+
MobileRecordStore::create(opCtx, ident.toString());
return Status::OK();
}