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

__clsm_enter_update can leave the tree locked

    • Type: Icon: Task Task
    • Resolution: Done
    • WT2.4.1
    • Affects Version/s: None
    • Component/s: None
    • Labels:

      @agorrod, I'm not sure if this is a problem or not, but in __clsm_enter_update:

      WT_RET(__wt_lsm_tree_lock(session, lsm_tree, 0));
      if (clsm->dsk_gen == lsm_tree->dsk_gen &&
          !F_ISSET(lsm_tree, WT_LSM_TREE_NEED_SWITCH)) {
              WT_RET(__wt_lsm_manager_push_entry(
                  session, WT_LSM_WORK_SWITCH, 0, lsm_tree));
              F_SET(lsm_tree, WT_LSM_TREE_NEED_SWITCH);
      }
      WT_RET(__wt_lsm_tree_unlock(session, lsm_tree, 0));
      

      If __wt_lsm_manager_push_entry fails, won't the tree be left locked?

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

              Created:
              Updated:
              Resolved: