diff options
author | Billy Donahue <billy.donahue@mongodb.com> | 2018-02-27 15:14:14 -0500 |
---|---|---|
committer | Billy Donahue <billy.donahue@mongodb.com> | 2018-03-02 16:31:01 -0500 |
commit | ad94e51e0dd40b0d0c38215a36caf75a4be48415 (patch) | |
tree | 8f621add05d506f88c23e64260780919e1f2d60e /src/mongo/bson/bsonobjbuilder.h | |
parent | ae20f392b61ddc90d2191856e76940ca3c7a3ed2 (diff) | |
download | mongo-ad94e51e0dd40b0d0c38215a36caf75a4be48415.tar.gz |
SERVER-33065 CommandReplyBuilder and CommandInvocation
remove publicRun from mr_test.cpp
change explain to take OpMsgRequest
private explain
private allowsAfterClusterTime
private supportsWriteConcern supportsReadConcern
remove publicRun
cluster_explain_cmd.cpp: do not inject "$db" field.
let explain() exceptions escape
update cluster distinct explain
Diffstat (limited to 'src/mongo/bson/bsonobjbuilder.h')
-rw-r--r-- | src/mongo/bson/bsonobjbuilder.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mongo/bson/bsonobjbuilder.h b/src/mongo/bson/bsonobjbuilder.h index 38dae8234fa..c8aed97e15b 100644 --- a/src/mongo/bson/bsonobjbuilder.h +++ b/src/mongo/bson/bsonobjbuilder.h @@ -172,6 +172,14 @@ public: } } + /** + * The start offset of the object being built by this builder within its buffer. + * Needed for the object-resuming constructor. + */ + std::size_t offset() const { + return _offset; + } + /** add all the fields from the object specified to this object */ BSONObjBuilder& appendElements(const BSONObj& x); |