summaryrefslogtreecommitdiff
path: root/src/mongo/rpc/reply_builder_interface.h
diff options
context:
space:
mode:
authorMisha Tyulenev <misha.tyulenev@mongodb.com>2015-06-19 10:28:48 -0400
committerMisha Tyulenev <misha.tyulenev@mongodb.com>2015-06-19 11:07:47 -0400
commit8c56e2d96b98154b65e3889cd157e648df6ddf77 (patch)
tree54f0abdbcb6c1dcefff79ade0dee99a6e768e329 /src/mongo/rpc/reply_builder_interface.h
parent24e96291fa06521483deac6d5a049be66e00f8c5 (diff)
downloadmongo-8c56e2d96b98154b65e3889cd157e648df6ddf77.tar.gz
SERVER-18929: Compute available space for output docs in CommandReplyBuilder
Diffstat (limited to 'src/mongo/rpc/reply_builder_interface.h')
-rw-r--r--src/mongo/rpc/reply_builder_interface.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mongo/rpc/reply_builder_interface.h b/src/mongo/rpc/reply_builder_interface.h
index 75c26cbc992..7a36ab8b622 100644
--- a/src/mongo/rpc/reply_builder_interface.h
+++ b/src/mongo/rpc/reply_builder_interface.h
@@ -125,6 +125,12 @@ namespace rpc {
virtual void reset() = 0;
/**
+ * Returns available space in bytes, should be used to verify that the message have enough
+ * space for ouput documents.
+ */
+ virtual std::size_t availableSpaceForOutputDocs() const = 0;
+
+ /**
* Writes data then transfers ownership of the message to the caller. The behavior of
* calling any methods on the builder is subsequently undefined.
*/