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

WT_WITH_SCHEMA_LOCK, WT_SESSION_SCHEMA_LOCKED don't need to spin

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: WT2.4.0
    • Labels:

      Description

      [~keithbostic] said:
      > Why does the WT_WITHOUT_SCHEMA_LOCK macro spin & yield when re-acquiring the schema lock, why not just block until it has it?

      Alex Gorrod said:

      > That is a good question. I copied the logic from WT_WITH_SCHEMA_LOCK, and I believe the same question could be applied there.
      > Michael: Is there a reason WT_WITH_SCHEMA_LOCK uses __wt_spin_trylock?

      [~michaelcahill] said:

      > WT_WITH_SCHEMA_LOCK used to spin so that it could notice if the WT_SESSION_SCHEMA_LOCKED flag was set – this happened during shutdown of LSM worker threads.
      > Now that Alex's changes have been merged, spinning should no longer be required.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                keith.bostic Keith Bostic
                Reporter:
                keith.bostic Keith Bostic
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: