summaryrefslogtreecommitdiff
path: root/src/mongo/db/catalog/database.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/catalog/database.h')
-rw-r--r--src/mongo/db/catalog/database.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/mongo/db/catalog/database.h b/src/mongo/db/catalog/database.h
index 2640abefbcb..f3a5a1393be 100644
--- a/src/mongo/db/catalog/database.h
+++ b/src/mongo/db/catalog/database.h
@@ -110,13 +110,18 @@ public:
* If we are applying a 'drop' oplog entry on a secondary, 'dropOpTime' will contain the optime
* of the oplog entry.
*
+ * When fromMigrate is set, the related oplog entry will be marked with a 'fromMigrate' field to
+ * reduce its visibility (e.g. in change streams).
+ *
* The caller should hold a DB X lock and ensure there are no index builds in progress on the
* collection.
* N.B. Namespace argument is passed by value as it may otherwise disappear or change.
*/
virtual Status dropCollection(OperationContext* opCtx,
NamespaceString nss,
- repl::OpTime dropOpTime = {}) const = 0;
+ repl::OpTime dropOpTime = {},
+ bool markFromMigrate = false) const = 0;
+
virtual Status dropCollectionEvenIfSystem(OperationContext* opCtx,
NamespaceString nss,
repl::OpTime dropOpTime = {},