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

__wt_tiered_tree_open() should assert dhandle != NULL before using it

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Minor - P4 Minor - P4
    • WT11.2.0, 7.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None

      __wt_tiered_tree_open() includes the following:

          /* 
           * Set dhandle->handle with tiered tree structure, initialized.
           */ 
          __wt_verbose(session, WT_VERB_TIERED, "TIERED_TREE_OPEN: Called %s", session->dhandle->name);
          WT_ASSERT(session, session->dhandle != NULL); 

      These statements are in the wrong order. The ASSERT should come before we use sesson->dhandle in the call to __wt_verbose().

            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: