collStats does not appear to take a lock

XMLWordPrintableJSON

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

      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);
      

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

              Created:
              Updated:
              Resolved: