[SERVER-63608] Usage of collStats should use collection namespace not full namespace Created: 14/Feb/22  Updated: 29/Oct/23  Resolved: 15/Feb/22

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

Type: Task Priority: Major - P3
Reporter: Allison Easton Assignee: Allison Easton
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Sprint: Sharding EMEA 2022-02-21
Participants:

 Description   

In defragmentation_util.js, the average object size is found by running collStats on the collection. However, this is currently using the full namespace which will cause collstats to return all 0s. This call should be changed to use only the collection namespace.



 Comments   
Comment by Githook User [ 15/Feb/22 ]

Author:

{'name': 'Allison Easton', 'email': 'allison.easton@mongodb.com', 'username': 'allisoneaston'}

Message: SERVER-63608 Usage of collStats should use collection namespace not full namespace
Branch: master
https://github.com/mongodb/mongo/commit/b5d49056f67ee01108a41bf5d1b7d2532c0af500

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