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

find_and_modify appears to be taking a DB_X lock

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 2.7.7
    • Fix Version/s: 2.8.0-rc3
    • Component/s: Concurrency
    • Labels:
    • Operating System:
      ALL

      Description

      Problem:
      https://github.com/mongodb/mongo/blob/master/src/mongo/db/commands/find_and_modify.cpp#L329

                  Lock::DBLock dbXLock(txn->lockState(), dbname, MODE_X);

      Solution:
      Take a Collection level lock.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                14 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: