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

WT_WITH_SCHEMA_LOCK, WT_SESSION_SCHEMA_LOCKED don't need to spin

    • Type: Icon: Task Task
    • Resolution: Done
    • WT2.4.0
    • Affects Version/s: None
    • Component/s: None
    • Labels:

      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?

      agorrod 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.

            Assignee:
            keith.bostic@mongodb.com Keith Bostic (Inactive)
            Reporter:
            keith.bostic@mongodb.com Keith Bostic (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: