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

profile commands appears to take out a G_X lock

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Works as Designed
    • 2.7.7
    • None
    • Concurrency
    • ALL

    Description

      Problem:
      See https://github.com/mongodb/mongo/blob/master/src/mongo/db/dbcommands.cpp#L351

                  // Needs to be locked exclusively, because creates the system.profile collection
                  // in the local database.
                  //
                  Lock::DBLock dbXLock(txn->lockState(), dbname, MODE_X);

      Alternative:
      Could this be scoped to a DB_X lock?

      Attachments

        Activity

          People

            Unassigned Unassigned
            alvin Alvin Richards (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: