summaryrefslogtreecommitdiff
path: root/src/mongo/db/catalog/database_impl.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/catalog/database_impl.h')
-rw-r--r--src/mongo/db/catalog/database_impl.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mongo/db/catalog/database_impl.h b/src/mongo/db/catalog/database_impl.h
index 31e04fb8476..09b5441c0bf 100644
--- a/src/mongo/db/catalog/database_impl.h
+++ b/src/mongo/db/catalog/database_impl.h
@@ -83,6 +83,9 @@ public:
*
* If we are applying a 'drop' oplog entry on a secondary, 'dropOpTime' will contain the optime
* of the oplog entry.
+ *
+ * The caller should hold a DB X lock and ensure there are no index builds in progress on the
+ * collection.
*/
Status dropCollection(OperationContext* opCtx,
StringData fullns,
@@ -122,6 +125,9 @@ public:
* Renames the fully qualified namespace 'fromNS' to the fully qualified namespace 'toNS'.
* Illegal to call unless both 'fromNS' and 'toNS' are within this database. Returns an error if
* 'toNS' already exists or 'fromNS' does not exist.
+ *
+ * The caller should hold a DB X lock and ensure there are no index builds in progress on either
+ * the 'fromNS' or the 'toNS'.
*/
Status renameCollection(OperationContext* opCtx,
StringData fromNS,