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

Encapsulate size check in ReplyBuilderInterface::addOutputDocs

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 3.1.6
    • None
    • Networking
    • None
    • Fully Compatible
    • Platform 6 07/17/15

    Description

      Change the ReplyBuilderInterface API to

      • make availableSpaceForOutputDocs private
      • change return type to StatusWith<std::size_t> for addOutputDoc(s)
        the value returned in status:
        Status::isOK will contain remaining space in the buffer.
        On the error client will have to either access the last successful status to get space left or try to add an empty BSONObj

      Attachments

        Activity

          People

            misha.tyulenev@mongodb.com Misha Tyulenev
            misha.tyulenev@mongodb.com Misha Tyulenev
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: