diff options
author | Martin Neupauer <xmaton@messengeruser.com> | 2020-12-01 09:34:18 -0500 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-12-08 15:24:30 +0000 |
commit | 7dd46dd26a1ce1f2bd80998417d8c169daf887ad (patch) | |
tree | 2198f6289d85b809964265e45ecff694a87f82e6 /src/mongo/bson | |
parent | 51660945fb6662367f30e00b1a4685787ad9bd89 (diff) | |
download | mongo-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.h | 12 |
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(); } |