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

dbHash doesn't run on clustered collections

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 5.0.0
    • Storage
    • Fully Compatible
    • ALL
    • Execution Team 2021-03-22

    Description

      As clustered collections do not have an _id index, dbHash fails silently. dbHash will only opt to perform a collection scan on capped collections instead of an index scan on _id.

       

      https://github.com/mongodb/mongo/blob/297904e17aaa5351d729685b70b97027e44f0cf9/src/mongo/db/commands/dbhash.cpp#L346-L368

       

      Attachments

        Activity

          People

            bynn.lee@mongodb.com Bynn Lee
            gregory.wlodarek@mongodb.com Gregory Wlodarek
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: