dbHash doesn't run on clustered collections

XMLWordPrintableJSON

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

      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
            Reporter:
            Gregory Wlodarek
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: