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

__wt_rts_history_final_pass may unlock the dhandle without locking it

    • Storage Engines
    • FOLLOW ON SPRINT - 2024-05-28

      err:
          if (session->dhandle != NULL)
              WT_TRET(__wt_session_release_dhandle(session));
          __wt_free(session, config);
      

      __wt_rts_history_final_pass uses session->dhandle to decide whether we need to release the dhandle. It is wrong as we may get the dhandle but failed to lock it. In this case, we will unlock the dhandle without locking it.

            Assignee:
            chenhao.qu@mongodb.com Chenhao Qu
            Reporter:
            chenhao.qu@mongodb.com Chenhao Qu
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: