summaryrefslogtreecommitdiff
path: root/src/mongo/dbtests/indexupdatetests.cpp
diff options
context:
space:
mode:
authorRandolph Tan <randolph@10gen.com>2022-02-22 18:33:00 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-03-16 17:53:27 +0000
commit8ac94fc68d134eaef7fb3815d25e98ef99f034a3 (patch)
tree13788b9adf10b34bdd91328acd2fcb486fbcbd25 /src/mongo/dbtests/indexupdatetests.cpp
parentb93f3757801f1b452391b8e3c277d092bd0fe835 (diff)
downloadmongo-8ac94fc68d134eaef7fb3815d25e98ef99f034a3.tar.gz
SERVER-6491 Prevent dropping shard key index when alternative index doesn't exist
Diffstat (limited to 'src/mongo/dbtests/indexupdatetests.cpp')
-rw-r--r--src/mongo/dbtests/indexupdatetests.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/dbtests/indexupdatetests.cpp b/src/mongo/dbtests/indexupdatetests.cpp
index 81de6756956..e44981aa502 100644
--- a/src/mongo/dbtests/indexupdatetests.cpp
+++ b/src/mongo/dbtests/indexupdatetests.cpp
@@ -250,7 +250,7 @@ public:
WriteUnitOfWork wunit(_opCtx);
// Drop all indexes including id index.
coll.getWritableCollection()->getIndexCatalog()->dropAllIndexes(
- _opCtx, coll.getWritableCollection(), true);
+ _opCtx, coll.getWritableCollection(), true, {});
// Insert some documents.
int32_t nDocs = 1000;
OpDebug* const nullOpDebug = nullptr;
@@ -300,7 +300,7 @@ public:
options.capped = true;
options.cappedSize = 10 * 1024;
Collection* coll = db->createCollection(_opCtx, _nss, options);
- coll->getIndexCatalog()->dropAllIndexes(_opCtx, coll, true);
+ coll->getIndexCatalog()->dropAllIndexes(_opCtx, coll, true, {});
// Insert some documents.
int32_t nDocs = 1000;
OpDebug* const nullOpDebug = nullptr;