Uploaded image for project: 'C++ Driver'
  1. C++ Driver
  2. CXX-1922

scoped_bson_t::steal() doesn't clear _is_initialized flag

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.5.0
    • Affects Version/s: None
    • Component/s: None
    • None

      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.

            Assignee:
            samantha.ritter@mongodb.com Samantha Ritter (Inactive)
            Reporter:
            samantha.ritter@mongodb.com Samantha Ritter (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: