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

LockState caching in OperationContextImpl is broken

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.5.3
    • Affects Version/s: None
    • Component/s: Internal Code
    • Labels:
      None
    • Fully Compatible
    • Storage 2016-12-12, Storage 2017-01-23, Storage 2017-02-13
    • 0

      In the OperationContextImpl destructor we create a new locker then immediately destroy it. If the point of caching is that construction/destruction of LockState is too expensive, then we are are still paying the cost and getting nothing out of it. We should consider removing the cache rather than fixing it.

            Assignee:
            geert.bosch@mongodb.com Geert Bosch
            Reporter:
            mathias@mongodb.com Mathias Stearn
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: