summaryrefslogtreecommitdiff
path: root/src/mongo/db/catalog/drop_collection.cpp
diff options
context:
space:
mode:
authorLouis Williams <louis.williams@mongodb.com>2020-05-26 09:48:38 -0400
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-05-26 14:06:39 +0000
commit0e4178afe88237ead101b11fcb19864d9d5a903c (patch)
treec60ebdc794638b05f675c8406f053092c5b69dfe /src/mongo/db/catalog/drop_collection.cpp
parent2992a78c15fbd1db49f0eec86a2b0ffbc63954e0 (diff)
downloadmongo-0e4178afe88237ead101b11fcb19864d9d5a903c.tar.gz
SERVER-39140 Remove BackgroundOperation
Diffstat (limited to 'src/mongo/db/catalog/drop_collection.cpp')
-rw-r--r--src/mongo/db/catalog/drop_collection.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/mongo/db/catalog/drop_collection.cpp b/src/mongo/db/catalog/drop_collection.cpp
index 2f96e840b0b..170c51557bb 100644
--- a/src/mongo/db/catalog/drop_collection.cpp
+++ b/src/mongo/db/catalog/drop_collection.cpp
@@ -33,7 +33,6 @@
#include "mongo/db/catalog/drop_collection.h"
-#include "mongo/db/background.h"
#include "mongo/db/catalog/index_catalog.h"
#include "mongo/db/catalog/uncommitted_collections.h"
#include "mongo/db/client.h"
@@ -256,7 +255,6 @@ Status _dropCollection(OperationContext* opCtx,
WriteUnitOfWork wunit(opCtx);
int numIndexes = coll->getIndexCatalog()->numIndexesTotal(opCtx);
- BackgroundOperation::assertNoBgOpInProgForNs(collectionName.ns());
IndexBuildsCoordinator::get(opCtx)->assertNoIndexBuildInProgForCollection(coll->uuid());
status =
systemCollectionMode == DropCollectionSystemCollectionMode::kDisallowSystemCollectionDrops