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

Session reference count could be wrong if adding the handle fails

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor - P4
    • Resolution: Done
    • None
    • WT2.8.0
    • None
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: