[SERVER-54892] dbHash doesn't run on clustered collections Created: 02/Mar/21  Updated: 29/Oct/23  Resolved: 09/Mar/21

Status: Closed
Project: Core Server
Component/s: Storage
Affects Version/s: None
Fix Version/s: 5.0.0

Type: Bug Priority: Major - P3
Reporter: Gregory Wlodarek Assignee: Bynn Lee
Resolution: Fixed Votes: 0
Labels: newgrad
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Execution Team 2021-03-22
Participants:

 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

 



 Comments   
Comment by Githook User [ 09/Mar/21 ]

Author:

{'name': 'Bynn Lee', 'email': 'bynn.lee@mongodb.com', 'username': 'bynn'}

Message: SERVER-54892 dbHash doesn't run on clustered collections
Branch: master
https://github.com/mongodb/mongo/commit/144e0d0f355dd5ec13a1aa135a1f59a90d234aa5

Generated at Thu Feb 08 05:34:48 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.