Remove unnecessary call to switch objects in __tiered_open

XMLWordPrintableJSON

    • Type: Technical Debt
    • Resolution: Fixed
    • Priority: Minor - P4
    • WT11.2.0, 7.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • 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
            Reporter:
            Keith Smith
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: