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

history store cursor search near compare should compare to history store key

    • Type: Icon: Bug Bug
    • Resolution: Works as Designed
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None

      alex.cameron made this change in WT-5678 for __wt_hs_cursor_position(). There are other places in the code where we have to make the same fix.

      Summarizing the issue:
      HIstory store keys do not maintain the same ordering as the respective btree keys, so we can not rely on that ordering when we search_near and iterate in either direction based on key compare.

      Solution:
      Construct a history store key from the given btree key and use that in comparison to determine the direction to walk in (or to retry search).

            Assignee:
            backlog-server-storage-engines [DO NOT USE] Backlog - Storage Engines Team
            Reporter:
            sulabh.mahajan@mongodb.com Sulabh Mahajan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: