diff options
Diffstat (limited to 'src/mongo/db/catalog/drop_collection.h')
-rw-r--r-- | src/mongo/db/catalog/drop_collection.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mongo/db/catalog/drop_collection.h b/src/mongo/db/catalog/drop_collection.h index 43362d3cb11..e6cd613f260 100644 --- a/src/mongo/db/catalog/drop_collection.h +++ b/src/mongo/db/catalog/drop_collection.h @@ -57,6 +57,13 @@ Status dropCollection(OperationContext* opCtx, DropCollectionSystemCollectionMode systemCollectionMode); /** + * Drops the collection "collectionName" only if its uuid is not matching "expectedUUID". + */ +Status dropCollectionIfUUIDNotMatching(OperationContext* opCtx, + const NamespaceString& ns, + const UUID& expectedUUID); + +/** * Drops the collection "collectionName". When applying a 'drop' oplog entry on a secondary, the * 'dropOpTime' will contain the optime of the oplog entry. */ |