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

Top::LockType::NotLocked reported when locks are held

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

      For example, in _createView, the DB and CollectionLock are acquired for the view's namespace, but Top::LockType::NotLocked is reported. According to the mongodb documentation, even commands should increment the "readLock" and "writeLock" counts. 

      It looks like we rely on the Top::LockType to increment "readLock" and "writeLock". 

      If today's usage of Top::LockType::NotLocked is correct, we should at least add a comment on when to use which LockType in the enum class declaration

            Assignee:
            backlog-query-execution [DO NOT USE] Backlog - Query Execution
            Reporter:
            haley.connelly@mongodb.com Haley Connelly
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: