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

Fix some issues with the recent changes to handle locking

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      1. bump the reference count before dropping the handle list lock. Otherwise, a handle sweep could free the handle from under us in between.

      2. hold the handle exclusive until sweep is finished with it. Previously it could have been re-acquired in between, and the locking situation was unclear.

      refs WT-1391, WT-1392

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              michael.cahill Michael Cahill
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: