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

find_and_modify appears to be taking a DB_X lock

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.8.0-rc3
    • Affects Version/s: 2.7.7
    • Component/s: Concurrency
    • ALL

      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.

            Assignee:
            kaloian.manassiev@mongodb.com Kaloian Manassiev
            Reporter:
            alvin Alvin Richards (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            14 Start watching this issue

              Created:
              Updated:
              Resolved: