Uploaded image for project: 'WiredTiger'
  1. WiredTiger
  2. WT-11125

Remove WT_DHANDLE_DISCARD flag usage in rollback to stable

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • WT11.2.0, 7.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • 1
    • 2023-05-30 - 7.0 Readiness

      The WT_DHANDLE_DISCARD flag is used to close the dhandle once as part of the dhandle release. This flag is used in rollback to stable code flow to close the handles that are processed as part of the rollback to stable. But this flag is never assigned to the opened dhandle due to which we never close any of the dhandles that are opened as part of the rollback to stable.

      Also, we cannot close a dhandle that is modified as part of the rollback to stable until the checkpoint is successfully finished. Closing a dhandle without a checkpoint can lead to failure when it is actually closed.

      Remove the use of the WT_DHANDLE_DISCARD flag in rollback to stable code as it is not used and not required in rollback to stable.

            haribabu.kommi@mongodb.com Haribabu Kommi
            haribabu.kommi@mongodb.com Haribabu Kommi
            0 Vote for this issue
            4 Start watching this issue