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

mongo::profile() shouldn't reuse BufBuilder when profile collection created

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 2.8.0-rc1
    • None
    • Internal Code
    • 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.

      Attachments

        Activity

          People

            rassi J Rassi
            rassi J Rassi
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: