diff options
author | Gabriel Russell <gabriel.russell@mongodb.com> | 2019-10-15 19:53:38 +0000 |
---|---|---|
committer | evergreen <evergreen@mongodb.com> | 2019-10-15 19:53:38 +0000 |
commit | a6e3d841fcb4bc219ad56e3defc898ae18de9dbd (patch) | |
tree | 72b95d223bcd4328238a4520b233f9b7b5ffe8e5 /src/mongo/bson/bsonobjbuilder.h | |
parent | 380711ea7dba41cb372a12a8d5258fdc124a0d23 (diff) | |
download | mongo-a6e3d841fcb4bc219ad56e3defc898ae18de9dbd.tar.gz |
Revert "SERVER-41994 correctly create and show type 2 binary elements"
This reverts commit 3f6ba750fc8374968c3c06e31c67ac2839e9a736.
Diffstat (limited to 'src/mongo/bson/bsonobjbuilder.h')
-rw-r--r-- | src/mongo/bson/bsonobjbuilder.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/mongo/bson/bsonobjbuilder.h b/src/mongo/bson/bsonobjbuilder.h index e520482539e..de68ff65353 100644 --- a/src/mongo/bson/bsonobjbuilder.h +++ b/src/mongo/bson/bsonobjbuilder.h @@ -513,9 +513,6 @@ public: int len, BinDataType type, const void* data) { - if (type == ByteArrayDeprecated) { - return appendBinDataArrayDeprecated(fieldName, data, len); - } _b.appendNum((char)BinData); _b.appendStr(fieldName); _b.appendNum(len); @@ -534,11 +531,11 @@ public: @param data a byte array @param len the length of data */ - BSONObjBuilder& appendBinDataArrayDeprecated(StringData fieldName, const void* data, int len) { + BSONObjBuilder& appendBinDataArrayDeprecated(const char* fieldName, const void* data, int len) { _b.appendNum((char)BinData); _b.appendStr(fieldName); _b.appendNum(len + 4); - _b.appendNum((char)ByteArrayDeprecated); + _b.appendNum((char)0x2); _b.appendNum(len); _b.appendBuf(data, len); return *this; |