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

dbHash doesn't run on clustered collections

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 5.0.0
    • Affects Version/s: None
    • Component/s: Storage
    • Fully Compatible
    • ALL
    • Execution Team 2021-03-22

      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

       

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

              Created:
              Updated:
              Resolved: