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

Convert table lock from a spinlock to a read write lock

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major - P3
    • Resolution: Done
    • None
    • WT2.9.2, 3.2.13, 3.4.3, 3.5.4
    • None
    • None
    • Storage 2017-02-13

    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

              michael.cahill@mongodb.com Michael Cahill (Inactive)
              alexander.gorrod@mongodb.com Alexander Gorrod
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: