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

collStats does not appear to take a lock

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • 2.8.0-rc0
    • Concurrency
    • ALL

    Description

      Problem

      collStats appears not to take a lock out (either C_S or DB_S). This is different to listCollections which takes a DB_S lock. Not clear if collStats should follow the same pattern

      https://github.com/mongodb/mongo/blob/master/src/mongo/db/commands/list_collections.cpp#L70

                  AutoGetDb autoDb(txn, dbname, MODE_S);

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: