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

Session reference count could be wrong if adding the handle fails

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor - P4
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: WT2.8.0
    • Labels:
      None

      Description

      Found by inspection and very unlikely in real world.

      If the call to __session_add_dhandle in __session_get_dhandle returns an error, we will have retrieved the handle and bumped the session_ref count, the reference count won't be decremented.

      The code in __session_get_dhandle should cleanup on error.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                alexander.gorrod Alexander Gorrod
                Reporter:
                alexander.gorrod Alexander Gorrod
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: