diff options
author | A. Jesse Jiryu Davis <jesse@mongodb.com> | 2021-02-09 15:06:07 -0500 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2021-02-09 22:47:45 +0000 |
commit | fcb69334e15e32049a45ebdcc7d2988acf441f5e (patch) | |
tree | 8211c18a65852f1d6b7c4701b9a4264a365f93b7 /src/mongo/dbtests | |
parent | 4a732d685ffa7c29e541c5ef6fe41751c9227d18 (diff) | |
download | mongo-fcb69334e15e32049a45ebdcc7d2988acf441f5e.tar.gz |
SERVER-52542 Convert dropIndexes to IDL
Diffstat (limited to 'src/mongo/dbtests')
-rw-r--r-- | src/mongo/dbtests/storage_timestamp_tests.cpp | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/src/mongo/dbtests/storage_timestamp_tests.cpp b/src/mongo/dbtests/storage_timestamp_tests.cpp index c1ccb5df053..60ab6a8e4d6 100644 --- a/src/mongo/dbtests/storage_timestamp_tests.cpp +++ b/src/mongo/dbtests/storage_timestamp_tests.cpp @@ -2750,12 +2750,7 @@ public: const LogicalTime beforeDropTs = currentTime.clusterTime(); // Drop all of the indexes. - BSONObjBuilder result; - ASSERT_OK(dropIndexes(_opCtx, - nss, - BSON("index" - << "*"), - &result)); + dropIndexes(_opCtx, nss, "*"); // Assert that each index is dropped individually and with its own timestamp. The order of // dropping and creating are not guaranteed to be the same, but assert all of the created @@ -2830,13 +2825,7 @@ public: const LogicalTime beforeDropTs = currentTime.clusterTime(); // Drop all of the indexes. - BSONObjBuilder result; - ASSERT_OK(dropIndexes(_opCtx, - nss, - BSON("index" << BSON_ARRAY("a_1" - << "b_1" - << "c_1")), - &result)); + dropIndexes(_opCtx, nss, std::vector<std::string>{"a_1", "b_1", "c_1"}); // Assert that each index is dropped individually and with its own timestamp. The order of // dropping and creating are not guaranteed to be the same, but assert all of the created |