Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-57163

Add updateWithDamages API that supports index update and validators

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
    • Storage Execution
    • Execution Team 2021-05-31

      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

            Assignee:
            backlog-server-execution [DO NOT USE] Backlog - Storage Execution Team
            Reporter:
            henrik.edin@mongodb.com Henrik Edin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: