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

Avoid making a copy of table URI in every cursor

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:

      In WT-3555 we tried to avoid making a copy of table URIs every time a cursor is opened.

      That change turned out to be unsafe, because we open a "file:" cursor in that case and it does not reference the "table:" dhandle. As a consequence, the table dhandle can be closed by a sweep while there is a file cursor open with a pointer to its URI. WT-3730 reverted the original change.

      Since there was a measurable performance improvement from this change, and we don't want table dhandles to be discarded when they are in use by cursors, we should investigate reinstating the change in WT-3555 but further having the cursor keep a reference to the "table:" dhandle and only releasing it on close.

            Assignee:
            backlog-server-storage-engines [DO NOT USE] Backlog - Storage Engines Team
            Reporter:
            michael.cahill@mongodb.com Michael Cahill (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated: