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

Convert table lock from a spinlock to a read write lock

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: WT2.9.2, 3.2.13, 3.4.3, 3.5.4
    • Component/s: None
    • Labels:
      None
    • Case:

      Description

      We recently made a change to convert the handle list lock from a spinlock to a read-write lock (WT-3115). It makes sense to convert the table lock into a read-write lock in a similar way, otherwise if a table is opened by many sessions concurrently they will end up contending on the spinlock.

      Before embarking on this change we should investigate whether we can get rid of the table lock altogether by switching tables to be dhandles. If that change isn't significantly more work than switching the lock type it is a preferable approach - since we'd like to move in that direction eventually.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              michael.cahill Michael Cahill
              Reporter:
              alexander.gorrod Alexander Gorrod
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: