summaryrefslogtreecommitdiff
path: root/src/mongo/db/catalog/drop_database.h
diff options
context:
space:
mode:
authorGregory Wlodarek <gregory.wlodarek@mongodb.com>2020-02-26 10:51:25 -0500
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-02-27 00:06:02 +0000
commit86cdfdd6e58a9853b39c6f4dc7f14e7210bd7c9f (patch)
tree26b786a7957a5a6968f77347729567e8d0fd7950 /src/mongo/db/catalog/drop_database.h
parentdf407d8f2b29d5b0181ff8108132e415abeea607 (diff)
downloadmongo-86cdfdd6e58a9853b39c6f4dc7f14e7210bd7c9f.tar.gz
SERVER-46123 Make the dropDatabase command abort in-progress index builds
Diffstat (limited to 'src/mongo/db/catalog/drop_database.h')
-rw-r--r--src/mongo/db/catalog/drop_database.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/mongo/db/catalog/drop_database.h b/src/mongo/db/catalog/drop_database.h
index 040b704b9a9..0e3b6e59125 100644
--- a/src/mongo/db/catalog/drop_database.h
+++ b/src/mongo/db/catalog/drop_database.h
@@ -33,7 +33,13 @@ namespace mongo {
class OperationContext;
/**
- * Drops the database "dbName".
+ * Drops the database "dbName". Aborts in-progress index builds on each collection in the database
+ * if two-phase index builds are enabled.
*/
Status dropDatabase(OperationContext* opCtx, const std::string& dbName);
+
+/**
+ * Drops the database "dbName". Does not abort in-progress index builds.
+ */
+Status dropDatabaseForApplyOps(OperationContext* opCtx, const std::string& dbName);
} // namespace mongo