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

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.6.12, 4.0.5, 4.1.6
    • Affects Version/s: None
    • Component/s: Concurrency
    • Fully Compatible
    • v4.0, v3.6, v3.4
    • Storage NYC 2018-12-03

      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.

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

              Created:
              Updated:
              Resolved: