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

Add updateWithDamages API that supports index update and validators

    XMLWordPrintable

Details

    • Task
    • Status: Backlog
    • Major - P3
    • Resolution: Unresolved
    • None
    • None
    • None
    • Execution Team 2021-05-31

    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

      Attachments

        Issue Links

          Activity

            People

              backlog-server-execution Backlog - Storage Execution Team
              henrik.edin@mongodb.com Henrik Edin
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: