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

Remove unnecessary call to switch objects in __tiered_open

    • Type: Icon: Technical Debt Technical Debt
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • WT11.2.0, 7.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      __tiered_open() includes the following code to initialize the btree for a tiered table:

          WT_ERR(__wt_btree_open(session, tiered_cfg));
          WT_ERR(__wt_btree_switch_object(session, tiered->current_id));

      The call to __wt_btree_switch_object() is not needed since __wt_btree_open() opens the btree with the current active object – i.e., using tiered->current_id, for the objectID.

            Assignee:
            keith.smith@mongodb.com Keith Smith
            Reporter:
            keith.smith@mongodb.com Keith Smith
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: