[SERVER-57163] Add updateWithDamages API that supports index update and validators Created: 24/May/21  Updated: 06/Dec/22

Status: Backlog
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Task Priority: Major - P3
Reporter: Henrik Edin Assignee: Backlog - Storage Execution Team
Resolution: Unresolved Votes: 0
Labels: WT_MODIFY
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on SERVER-57162 Generate DamageVector and final BSONO... Backlog
Related
Assigned Teams:
Storage Execution
Sprint: Execution Team 2021-05-31
Participants:

 Description   

We need an interface to do updateWithDamages when we have both a DamageVector and BSONObj representing the new value. We need to be able to pass the updated BSONObj to IndexCatalog::updateRecord and the validator.

Consider adding a slightly different DamageVector/DamageEvent types that don't require all target buffers to be located in a single contiguous buffer.

The current updateWithDamages API is not allowed to use when there are a validator set on the Collection. https://github.com/mongodb/mongo/blob/master/src/mongo/db/catalog/collection_impl.cpp#L1235


Generated at Thu Feb 08 05:41:08 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.