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

Split wiredTigerPrepareConflictRetry into fast and slow paths

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 7.1.0-rc0
    • None
    • None
    • None
    • Fully Compatible
    • Security 2023-06-26
    • 4

    Description

      wiredTigerPrepareConflictRetry is a 87 line function that is used twice in WiredTigerRecordStoreCursorBase::next. This function consists of a fast and slow path. The fast path is called when there are no errors and the function exits early. The slow path waits for other transactions to be committed. This function can be split into a part that can be inlined and a separate function that calls a lambda in the slow case. This will save code duplication and shrink function size.

      Attachments

        Activity

          People

            mark.benvenuto@mongodb.com Mark Benvenuto
            mark.benvenuto@mongodb.com Mark Benvenuto
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: