[CXX-1922] scoped_bson_t::steal() doesn't clear _is_initialized flag Created: 27/Jan/20  Updated: 28/Oct/23  Resolved: 19/Feb/20

Status: Closed
Project: C++ Driver
Component/s: None
Affects Version/s: None
Fix Version/s: 3.5.0

Type: Bug Priority: Major - P3
Reporter: Samantha Ritter (Inactive) Assignee: Samantha Ritter (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

This problem showed up during testing of another feature.  scoped_bson_t holds an internal flag to signal if it holds memory.  When steal() is called, the scoped_bson_t releases its owned memory to the caller; it should clear its ownership flag, too.



 Comments   
Comment by Githook User [ 19/Feb/20 ]

Author:

{'name': 'samantharitter', 'username': 'samantharitter', 'email': 'samantha.ritter@10gen.com'}

Message: CXX-1922 clear initialized flag in scoped_bson_t::steal
Branch: master
https://github.com/mongodb/mongo-cxx-driver/commit/394897a909a6cc5b0ea720330b6938db67a8328a

Generated at Wed Feb 07 22:04:21 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.