[SERVER-19060] Encapsulate size check in ReplyBuilderInterface::addOutputDocs Created: 19/Jun/15  Updated: 05/Feb/16  Resolved: 08/Jul/15

Status: Closed
Project: Core Server
Component/s: Networking
Affects Version/s: None
Fix Version/s: 3.1.6

Type: Improvement Priority: Major - P3
Reporter: Misha Tyulenev Assignee: Misha Tyulenev
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Sprint: Platform 6 07/17/15
Participants:

 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


 Comments   
Comment by Githook User [ 08/Jul/15 ]

Author:

{u'username': u'mikety', u'name': u'Misha Tyulenev', u'email': u'misha@mongodb.com'}

Message: SERVER-18930 SERVER-19060 SERVER-19132 SERVER-19133 Implement LegacyReply(Builder) API and up/down conversions
Branch: master
https://github.com/mongodb/mongo/commit/5bd86559ad505c1219bd3f9ad8775b1594669381

Generated at Thu Feb 08 03:49:41 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.