summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl
diff options
context:
space:
mode:
authorAlberto Massari <alberto.massari@mongodb.com>2022-12-21 19:56:54 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-12-21 21:14:53 +0000
commit5977e706431fd5705b59115ec0e0d2d7a2203246 (patch)
tree2161b9d853c2e7453a19d12b88bd39bc9bf87dd5 /src/mongo/db/repl
parent9ac3279cc3459b31a597ed4659e07ad93f073d8f (diff)
downloadmongo-5977e706431fd5705b59115ec0e0d2d7a2203246.tar.gz
SERVER-65364 Allow fine-grained selection of indexes to update
Diffstat (limited to 'src/mongo/db/repl')
-rw-r--r--src/mongo/db/repl/storage_timestamp_test.cpp14
-rw-r--r--src/mongo/db/repl/tenant_migration_donor_service.cpp2
2 files changed, 12 insertions, 4 deletions
diff --git a/src/mongo/db/repl/storage_timestamp_test.cpp b/src/mongo/db/repl/storage_timestamp_test.cpp
index 9accf4a37b8..70a54a98b63 100644
--- a/src/mongo/db/repl/storage_timestamp_test.cpp
+++ b/src/mongo/db/repl/storage_timestamp_test.cpp
@@ -3205,7 +3205,7 @@ TEST_F(RetryableFindAndModifyTest, RetryableFindAndModifyUpdate) {
record->id,
Snapshotted<BSONObj>(_opCtx->recoveryUnit()->getSnapshotId(), oldObj),
newObj,
- false,
+ collection_internal::kUpdateNoIndexes,
nullptr,
&args);
wuow.commit();
@@ -3258,8 +3258,16 @@ TEST_F(RetryableFindAndModifyTest, RetryableFindAndModifyUpdateWithDamages) {
auto record = cursor->next();
invariant(record);
WriteUnitOfWork wuow(_opCtx);
- const auto statusWith = collection_internal::updateDocumentWithDamages(
- _opCtx, *autoColl, record->id, objSnapshot, source, damages, false, nullptr, &args);
+ const auto statusWith =
+ collection_internal::updateDocumentWithDamages(_opCtx,
+ *autoColl,
+ record->id,
+ objSnapshot,
+ source,
+ damages,
+ collection_internal::kUpdateNoIndexes,
+ nullptr,
+ &args);
wuow.commit();
ASSERT_OK(statusWith.getStatus());
}
diff --git a/src/mongo/db/repl/tenant_migration_donor_service.cpp b/src/mongo/db/repl/tenant_migration_donor_service.cpp
index e68cb891b50..3906900198f 100644
--- a/src/mongo/db/repl/tenant_migration_donor_service.cpp
+++ b/src/mongo/db/repl/tenant_migration_donor_service.cpp
@@ -666,7 +666,7 @@ ExecutorFuture<repl::OpTime> TenantMigrationDonorService::Instance::_updateState
originalRecordId,
originalSnapshot,
updatedStateDocBson,
- false,
+ collection_internal::kUpdateNoIndexes,
nullptr /* OpDebug* */,
&args);