Details
-
Improvement
-
Resolution: Done
-
Major - P3
-
None
-
None
Description
When profiling is enabled but the system.profile collection does not exist, the operation is serialized into a BufBuilder, then the collection is created, and then the operation is re-serialized into the remaining space of the same BufBuilder. The second serialization needs to use a new BufBuilder (otherwise, any operation that serializes to >32MB will trip an invariant when the BufBuilder is attempted to be resized past its 64MB maximum).
Affects master as of 1537472f.