[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: |