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

Convert table lock from a spinlock to a read write lock

    • Type: Icon: New Feature New Feature
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • WT2.9.2, 3.2.13, 3.4.3, 3.5.4
    • Affects Version/s: None
    • Component/s: None
    • None
    • Storage 2017-02-13

      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.

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

              Created:
              Updated:
              Resolved: