-
Type: Improvement
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: Internal Code
-
None
-
Fully Compatible
-
Repl 2017-06-19, Repl 2017-07-10
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.