summaryrefslogtreecommitdiff
path: root/src/mongo/bson/mutable/document.cpp
diff options
context:
space:
mode:
authorAndrew Morrow <acm@10gen.com>2013-07-09 18:56:30 -0400
committerAndrew Morrow <acm@10gen.com>2013-07-09 20:02:51 -0400
commit2dd8b16ebbafd564fcd2967ec390da222dedc3c5 (patch)
tree329ad85493342d1e080c137bf8a9e2c44313933a /src/mongo/bson/mutable/document.cpp
parent5623bbd54da40c28f876a516760836b29ab2441f (diff)
downloadmongo-2dd8b16ebbafd564fcd2967ec390da222dedc3c5.tar.gz
SERVER-8046 Cleanup Element::writeArrayTo and add a test for the new implementation
Diffstat (limited to 'src/mongo/bson/mutable/document.cpp')
-rw-r--r--src/mongo/bson/mutable/document.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/bson/mutable/document.cpp b/src/mongo/bson/mutable/document.cpp
index f8cee4b8913..27c1411240d 100644
--- a/src/mongo/bson/mutable/document.cpp
+++ b/src/mongo/bson/mutable/document.cpp
@@ -1459,7 +1459,7 @@ namespace mutablebson {
const Document::Impl& impl = getDocument().getImpl();
const ElementRep& thisRep = impl.getElementRep(_repIdx);
verify(impl.getType(thisRep) == mongo::Array);
- return writeElement(builder);
+ return writeChildren(builder);
}
Status Element::setValueDouble(const double value) {