summaryrefslogtreecommitdiff
path: root/src/mongo/scripting
diff options
context:
space:
mode:
authorGabriel Russell <gabriel.russell@mongodb.com>2019-10-15 19:53:38 +0000
committerevergreen <evergreen@mongodb.com>2019-10-15 19:53:38 +0000
commita6e3d841fcb4bc219ad56e3defc898ae18de9dbd (patch)
tree72b95d223bcd4328238a4520b233f9b7b5ffe8e5 /src/mongo/scripting
parent380711ea7dba41cb372a12a8d5258fdc124a0d23 (diff)
downloadmongo-a6e3d841fcb4bc219ad56e3defc898ae18de9dbd.tar.gz
Revert "SERVER-41994 correctly create and show type 2 binary elements"
This reverts commit 3f6ba750fc8374968c3c06e31c67ac2839e9a736.
Diffstat (limited to 'src/mongo/scripting')
-rw-r--r--src/mongo/scripting/mozjs/valuereader.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/scripting/mozjs/valuereader.cpp b/src/mongo/scripting/mozjs/valuereader.cpp
index e518cec2e7e..66a48ddd707 100644
--- a/src/mongo/scripting/mozjs/valuereader.cpp
+++ b/src/mongo/scripting/mozjs/valuereader.cpp
@@ -136,7 +136,7 @@ void ValueReader::fromBSONElement(const BSONElement& elem, const BSONObj& parent
}
case mongo::BinData: {
int len;
- const char* data = elem.binDataClean(len);
+ const char* data = elem.binData(len);
std::stringstream ss;
base64::encode(ss, data, len);