[SERVER-49101] Fix erroneous size check in Biggie's Node::_begin() function Created: 25/Jun/20  Updated: 29/Oct/23  Resolved: 29/Jun/20

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

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

Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Execution Team 2020-06-29, Execution Team 2020-07-13
Participants:

 Description   

We check if the Node's children array is empty here. But because we pre-allocated 256 slots in the std::array here, the call to empty() will always return false. We should fix this to return nullptr appropriately and add a unit test when there are no children.



 Comments   
Comment by Githook User [ 29/Jun/20 ]

Author:

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

Message: SERVER-49101 Fix erroneous size check in Biggie's Node::_begin() function
Branch: master
https://github.com/mongodb/mongo/commit/c00eefdfee718e9bc12f0fd9bebf16c4980bbef7

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