diff options
Diffstat (limited to 'src/mongo/db/catalog/drop_collection.h')
-rw-r--r-- | src/mongo/db/catalog/drop_collection.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mongo/db/catalog/drop_collection.h b/src/mongo/db/catalog/drop_collection.h index 2646c632aa1..6b716e0666c 100644 --- a/src/mongo/db/catalog/drop_collection.h +++ b/src/mongo/db/catalog/drop_collection.h @@ -39,6 +39,12 @@ class OpTime; } // namespace repl /** + * Closes the specified database if it no longer has any collections remaining. Must be called + * without any locks acquired on the database. + */ +void closeDatabaseIfEmpty(OperationContext* opCtx, StringData ns); + +/** * Drops the collection "collectionName" and populates "result" with statistics about what * was removed. * |