summaryrefslogtreecommitdiff
path: root/src/mongo/db/s/drop_collection_coordinator.h
diff options
context:
space:
mode:
authorEnrico Golfieri <enrico.golfieri@mongodb.com>2022-10-28 08:31:58 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-10-28 09:09:09 +0000
commit22afc187e2a5ed450cf608458393830eb40b913a (patch)
tree6022e25c67ad9e52aefb1fdea612a4815c569f5b /src/mongo/db/s/drop_collection_coordinator.h
parent9ef93f783419da5734d3afdf84e987ed39a1591f (diff)
downloadmongo-22afc187e2a5ed450cf608458393830eb40b913a.tar.gz
SERVER-69603 Do not report drop events as part of shardCollection
Diffstat (limited to 'src/mongo/db/s/drop_collection_coordinator.h')
-rw-r--r--src/mongo/db/s/drop_collection_coordinator.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mongo/db/s/drop_collection_coordinator.h b/src/mongo/db/s/drop_collection_coordinator.h
index 765f11286f1..7a8288c4e9c 100644
--- a/src/mongo/db/s/drop_collection_coordinator.h
+++ b/src/mongo/db/s/drop_collection_coordinator.h
@@ -52,8 +52,12 @@ public:
/**
* Locally drops a collection, cleans its CollectionShardingRuntime metadata and refreshes the
* catalog cache.
+ * The oplog entry associated with the drop collection will be generated with the fromMigrate
+ * flag.
*/
- static DropReply dropCollectionLocally(OperationContext* opCtx, const NamespaceString& nss);
+ static void dropCollectionLocally(OperationContext* opCtx,
+ const NamespaceString& nss,
+ bool fromMigrate);
private:
StringData serializePhase(const Phase& phase) const override {