From 7a99fd808fc4e8960d2981799415617c495a0fda Mon Sep 17 00:00:00 2001 From: David Storch Date: Fri, 13 Nov 2015 13:28:36 -0500 Subject: SERVER-20853 eliminate copies in find and getMore path --- src/mongo/bson/bsonmisc.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/mongo/bson/bsonmisc.h') diff --git a/src/mongo/bson/bsonmisc.h b/src/mongo/bson/bsonmisc.h index d1c1894190a..f32319965f1 100644 --- a/src/mongo/bson/bsonmisc.h +++ b/src/mongo/bson/bsonmisc.h @@ -253,6 +253,11 @@ public: return *_builder; } + /** + * Restores this object to its empty state. + */ + void reset(); + private: StringData _fieldName; BSONObjBuilder* _builder; -- cgit v1.2.1