summaryrefslogtreecommitdiff
path: root/src/mongo/bson
diff options
context:
space:
mode:
authorMartin Neupauer <xmaton@messengeruser.com>2020-12-01 09:34:18 -0500
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-12-08 15:24:30 +0000
commit7dd46dd26a1ce1f2bd80998417d8c169daf887ad (patch)
tree2198f6289d85b809964265e45ecff694a87f82e6 /src/mongo/bson
parent51660945fb6662367f30e00b1a4685787ad9bd89 (diff)
downloadmongo-7dd46dd26a1ce1f2bd80998417d8c169daf887ad.tar.gz
SERVER-52703 Support Undefined type in SBE. SERVER-52704 Support MinKey/MaxKey types in SBE.
Diffstat (limited to 'src/mongo/bson')
-rw-r--r--src/mongo/bson/bsonobjbuilder.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/mongo/bson/bsonobjbuilder.h b/src/mongo/bson/bsonobjbuilder.h
index 8dcc098bba6..d568809fa49 100644
--- a/src/mongo/bson/bsonobjbuilder.h
+++ b/src/mongo/bson/bsonobjbuilder.h
@@ -922,6 +922,18 @@ public:
return static_cast<Derived&>(*this);
}
+ Derived& appendMinKey() {
+ _b.appendMinKey(_fieldCount);
+ ++_fieldCount;
+ return static_cast<Derived&>(*this);
+ }
+
+ Derived& appendMaxKey() {
+ _b.appendMaxKey(_fieldCount);
+ ++_fieldCount;
+ return static_cast<Derived&>(*this);
+ }
+
BSONObj done() {
return _b.done();
}