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

The dbstats command should lock the database in MODE_IS instead of MODE_S

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 3.6.12, 4.0.5, 4.1.6
    • Concurrency
    • Fully Compatible
    • v4.0, v3.6, v3.4
    • Storage NYC 2018-12-03

    Description

      Currently the dbstats command locks the database in MODE_S, which causes issues with transactions that may hold MODE_IX locks for extended periods of time. Similar to the changes we made for listCollections, we should instead lock the database in MODE_IS and then lock each collection in turn to get stats.

      Attachments

        Issue Links

          Activity

            People

              xiangyu.yao@mongodb.com Xiangyu Yao (Inactive)
              geert.bosch@mongodb.com Geert Bosch
              Votes:
              0 Vote for this issue
              Watchers:
              16 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: