summaryrefslogtreecommitdiff
path: root/buildscripts
diff options
context:
space:
mode:
authorMark Benvenuto <mark.benvenuto@mongodb.com>2018-09-14 15:08:41 -0400
committerMark Benvenuto <mark.benvenuto@mongodb.com>2018-09-14 15:08:41 -0400
commit6f0a463deaf890219b4b08172ebaef28df81b470 (patch)
treef2c26188fa44ccfd13758af85db7ef8084b9eea4 /buildscripts
parent3d2124a52216a469f5dbc510c660d6f6cd03184d (diff)
downloadmongo-6f0a463deaf890219b4b08172ebaef28df81b470.tar.gz
Revert "SERVER-36637 IDL objects should hold owned BSONObjs"
This reverts commit 846a6c19839601ce66f27877b348a4a5150a453d.
Diffstat (limited to 'buildscripts')
-rw-r--r--buildscripts/idl/idl/generator.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/buildscripts/idl/idl/generator.py b/buildscripts/idl/idl/generator.py
index 65bdfe14647..dd8349dea2e 100644
--- a/buildscripts/idl/idl/generator.py
+++ b/buildscripts/idl/idl/generator.py
@@ -785,10 +785,9 @@ class _CppSourceFileWriter(_CppFileWriterBase):
return common.template_args("${method_name}(${expression})",
method_name=method_name, expression=expression)
- # BSONObjects are allowed to be pass through without deserialization but we must return
- # them as Owned since we are going to store them in the IDL generated class
+ # BSONObjects are allowed to be pass through without deserialization
assert field.bson_serialization_type == ['object']
- return expression + ".getOwned()"
+ return expression
# Call a static class method with the signature:
# Class Class::method(const BSONElement& value)