summaryrefslogtreecommitdiff
path: root/src/mongo/bson/bsonmisc.h
diff options
context:
space:
mode:
authorDavid Storch <david.storch@10gen.com>2015-11-13 13:28:36 -0500
committerDavid Storch <david.storch@10gen.com>2015-11-13 16:41:37 -0500
commit7a99fd808fc4e8960d2981799415617c495a0fda (patch)
tree89fbd9ea94559b27637e9d3d1a09827981622c19 /src/mongo/bson/bsonmisc.h
parentbddbae79b4733dbd392215c38beccab5daa0109c (diff)
downloadmongo-7a99fd808fc4e8960d2981799415617c495a0fda.tar.gz
SERVER-20853 eliminate copies in find and getMore path
Diffstat (limited to 'src/mongo/bson/bsonmisc.h')
-rw-r--r--src/mongo/bson/bsonmisc.h5
1 files changed, 5 insertions, 0 deletions
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;