find_and_modify appears to be taking a DB_X lock

XMLWordPrintableJSON

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

      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
              Reporter:
              Alvin Richards (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              14 Start watching this issue

                Created:
                Updated:
                Resolved: