[SERVER-35925] splitVector accessing uninitialized boost optional Created: 29/Jun/18  Updated: 29/Oct/23  Resolved: 23/Jul/18

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

Type: Bug Priority: Major - P3
Reporter: Randolph Tan Assignee: Cheahuychou Mao
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Sharding 2018-07-30
Participants:
Linked BF Score: 73

 Description   

If neither maxChunkSize nor maxChunkSizeBytes is given in the splitVector command, it will be left uninitialized (after this block).

It will later then try to get the value here



 Comments   
Comment by Githook User [ 23/Jul/18 ]

Author:

{'name': 'Cheahuychou Mao', 'email': 'cheahuychou.mao@mongodb.com', 'username': 'cheahuychou'}

Message: SERVER-35925 Ensure that maxChunkSize is initialized in splitVector
Branch: master
https://github.com/mongodb/mongo/commit/c65f4f0a2b48a60f4d10ff730b6ceddc04a303f7

Generated at Thu Feb 08 04:41:29 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.