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

Performance: LockState::isLocked() should be optimized

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Minor - P4 Minor - P4
    • None
    • 2.2.0
    • Internal Code, Performance
    • None
    • Sharding

    Description

      The LockState::isLocked() function beginning on line 59 in src/mongo/db/lockstate.cpp is a low-level routine that is called heavily. It should be modified to be less expensive. It is generally called with a database name (not a full database.collection name) but it always makes a local copy of the portion that appears before the first period, which is usually the full string. If there are cases where a full namespace name is used, that should be a different version of this routine. If this routine is only called with database names, the string copy should be removed.

      Attachments

        Activity

          People

            backlog-server-sharding [DO NOT USE] Backlog - Sharding Team
            tad Tad Marshall
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: