summaryrefslogtreecommitdiff
path: root/src/mongo/db/pipeline/document.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/pipeline/document.h')
-rw-r--r--src/mongo/db/pipeline/document.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/pipeline/document.h b/src/mongo/db/pipeline/document.h
index 375cd48faa3..77c04bafb3f 100644
--- a/src/mongo/db/pipeline/document.h
+++ b/src/mongo/db/pipeline/document.h
@@ -467,7 +467,7 @@ namespace mongo {
return *this << Value(val);
}
- Value done() { return Value(_array); }
+ Value done() { return Value::consume(_array); }
private:
vector<Value> _array;