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

profile commands appears to take out a G_X lock

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

      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?

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

              Created:
              Updated:
              Resolved: