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

Session reference count could be wrong if adding the handle fails

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • WT2.8.0
    • Affects Version/s: None
    • Component/s: None
    • None

      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.

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

              Created:
              Updated:
              Resolved: