[SERVER-33127] Possible use of uninitialized integer value in mongos `collStats` Created: 05/Feb/18 Updated: 29/Oct/23 Resolved: 26/Feb/18 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Sharding |
| Affects Version/s: | 3.6.2 |
| Fix Version/s: | 3.7.3 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Kaloian Manassiev | Assignee: | Kaloian Manassiev |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Backwards Compatibility: | Fully Compatible |
| Operating System: | ALL |
| Sprint: | Sharding 2018-02-26, Sharding 2018-03-12 |
| Participants: |
| Description |
|
If a shard's response to collStats doesn't contain the avgObjSize field, then the shardAvgObjSize variable will be left uninitialized and then used here. |
| Comments |
| Comment by Githook User [ 26/Feb/18 ] |
|
Author: {'email': 'kaloian.manassiev@mongodb.com', 'name': 'Kaloian Manassiev', 'username': 'kaloianm'}Message: Also gets rid of some legacy fields which are no longer expected to be |