summaryrefslogtreecommitdiff
path: root/src/mongo/db/catalog/collection_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/catalog/collection_test.cpp')
-rw-r--r--src/mongo/db/catalog/collection_test.cpp12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/mongo/db/catalog/collection_test.cpp b/src/mongo/db/catalog/collection_test.cpp
index 48c653f975f..4337263b70a 100644
--- a/src/mongo/db/catalog/collection_test.cpp
+++ b/src/mongo/db/catalog/collection_test.cpp
@@ -278,8 +278,14 @@ TEST_F(CollectionTest, VerifyIndexIsUpdated) {
WriteUnitOfWork wuow(opCtx);
Snapshotted<BSONObj> oldSnap(opCtx->recoveryUnit()->getSnapshotId(), oldDoc);
CollectionUpdateArgs args{oldDoc};
- collection_internal::updateDocument(
- opCtx, coll, oldRecordId, oldSnap, newDoc, true, nullptr, &args);
+ collection_internal::updateDocument(opCtx,
+ coll,
+ oldRecordId,
+ oldSnap,
+ newDoc,
+ collection_internal::kUpdateAllIndexes,
+ nullptr,
+ &args);
wuow.commit();
}
auto indexRecordId = userIdx->getEntry()->accessMethod()->asSortedData()->findSingle(
@@ -329,7 +335,7 @@ TEST_F(CollectionTest, VerifyIndexIsUpdatedWithDamages) {
oldSnap,
damagesOutput.damageSource.get(),
damagesOutput.damages,
- true,
+ collection_internal::kUpdateAllIndexes,
nullptr,
&args);
ASSERT_OK(newDocStatus);