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

WiredTigerRecordStore::doUpdateRecord breaks RecordStore::updateRecord contract

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • Storage Execution

    Description

      The RecordStore provides two methods to update a record, full update (updateRecord) and incremental update (updateWithDamages). However, WiredTigerRecordStore::doUpdateRecord under some conditions, might try to do an incremental update. This breaks the expectations of RecordStore::updateRecord callers.

      I.e. updateStage has its own logic to decide whether to compute damages and do incremental updates or full updates.

      Maybe we should be push this logic outside WiredTigerRecordStore::doUpdateRecord, and call RecordStore::updateWithDamages as required.

       

      Attachments

        Activity

          People

            backlog-server-execution Backlog - Storage Execution Team
            yujin.kang@mongodb.com Yujin Kang Park
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: