summaryrefslogtreecommitdiff
path: root/src/mongo/db/catalog/create_collection.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/catalog/create_collection.h')
-rw-r--r--src/mongo/db/catalog/create_collection.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/mongo/db/catalog/create_collection.h b/src/mongo/db/catalog/create_collection.h
index ee373c7ef7b..694f4c6ed36 100644
--- a/src/mongo/db/catalog/create_collection.h
+++ b/src/mongo/db/catalog/create_collection.h
@@ -55,6 +55,15 @@ Status createCollection(OperationContext* opCtx,
const NamespaceString& ns,
const CreateCommand& cmd);
+
+/**
+ * Creates the collection or the view as described by 'options'.
+ */
+Status createCollection(OperationContext* opCtx,
+ const NamespaceString& ns,
+ const CollectionOptions& options,
+ const boost::optional<BSONObj>& idIndex);
+
/**
* Creates the change stream pre-images collection. The collection is clustered by the primary key,
* _id.