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

Remove the WT_CURSOR_BTREE.btree field

    • Type: Icon: Technical Debt Technical Debt
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • WT10.0.0, 4.4.0-rc6, 4.7.0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • 8
    • Storage - Tora 2020-05-18

      There are currently 3 different ways to find the WT_BTREE handle in WiredTiger: S2BT(WT_SESSION_IMPL *session), WT_CURSOR_BTREE.btree, and WT_CURSOR.BTREE.dhandle.handle, and they're not kept in sync.

      The WT_CURSOR_BTREE.dhandle field was added as part of donald.anderson's work in WT-4042, and should always be available.

      We should remove the WT_CURSOR_BTREE.btree field, and change the Btree layer code to use S2BT(session) to acquire the Btree, requiring the standard pattern of passing the current WT_BTREE reference as part of the WT_SESSION_IMPL structure.

            Assignee:
            keith.bostic@mongodb.com Keith Bostic (Inactive)
            Reporter:
            keith.bostic@mongodb.com Keith Bostic (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: