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

Remove the partial logic and rewrite __live_restore_can_service_read

    • Storage Engines, Storage Engines - Transactions
    • 3
    • StorEng - 2025-04-25

      Currently __live_restore_can_service_read will return a WT_LIVE_RESTORE_SERVICE_STATE that is FULL, PARTIAL or NONE, however since wiredtiger reads/writes are always the size of one page, if we see a PARTIAL read that means:
      1. Background migration for the page is in progress.
      2. There're no writes on the page yet, otherwise the whole page should have been set to -1 in bitmap and FULL will be returned by __live_restore_can_service_read.
      In summary, the result of a PARTIAL read is always identical to the result of a NONE read, and this ticket is to remove the PARTIAL scenario, and tidy up the function if necessary.

            Assignee:
            zunyi.liu@mongodb.com Zunyi Liu
            Reporter:
            zunyi.liu@mongodb.com Zunyi Liu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: