Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-29564

Allow BSONObjBuilder to append to existing BSONObj without copying

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 3.5.9
    • None
    • Internal Code
    • None
    • Fully Compatible
    • Repl 2017-06-19, Repl 2017-07-10

    Description

      It should be able to reuse the SharedBuffer from an owned BSONObj as long as the ref count is 1, meaning that no other objects are using the same SharedBuffer. This addresses a common pattern in our code of needing to append a few fields to a BSONObj we just constructed.

      Attachments

        Activity

          People

            mathias@mongodb.com Mathias Stearn
            mathias@mongodb.com Mathias Stearn
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: