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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.5.0
    • Component/s: None
    • Labels:
      None

      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.

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: