Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-31912

waitUntilDurable() should use its own WT_SESSION, not one from the cache

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.6.0-rc4
    • Affects Version/s: None
    • Component/s: Storage
    • None
    • Fully Compatible
    • Storage 2017-11-13

      waitUntilDurable() only needs a session to call log_flush() and checkpoint(). Since it uses no cursors, it should be fine to have it simply use one long-lived session object for this, rather than getting a session out of the cache every time.
      The benefit for this will be to reduce contention on the mutex that protects the session cache, as it must be locked every time a session is taken out of the cache and every time a session is returned to the cache.

            Assignee:
            milkie@mongodb.com Eric Milkie
            Reporter:
            milkie@mongodb.com Eric Milkie
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: