diff options
author | James Wahlin <james.wahlin@10gen.com> | 2017-05-08 16:36:32 -0400 |
---|---|---|
committer | James Wahlin <james.wahlin@10gen.com> | 2017-05-09 06:50:30 -0400 |
commit | 79c2c2d340982da8b669cd7c3aa6b958dbf56263 (patch) | |
tree | 638966f593b22a6e3a1de2851a4e1df2959480bb /src/mongo/db/pipeline/document_path_support.cpp | |
parent | 7d90084649608b3acc35ea290cce879783df12dc (diff) | |
download | mongo-79c2c2d340982da8b669cd7c3aa6b958dbf56263.tar.gz |
SERVER-28651 Don't hold Document ref across group iterationsr3.5.7
Diffstat (limited to 'src/mongo/db/pipeline/document_path_support.cpp')
-rw-r--r-- | src/mongo/db/pipeline/document_path_support.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/pipeline/document_path_support.cpp b/src/mongo/db/pipeline/document_path_support.cpp index 261b7bdf91d..914763e696b 100644 --- a/src/mongo/db/pipeline/document_path_support.cpp +++ b/src/mongo/db/pipeline/document_path_support.cpp @@ -132,10 +132,10 @@ void visitAllValuesAtPathHelper(Document doc, } // namespace -void visitAllValuesAtPath(Document doc, +void visitAllValuesAtPath(const Document& doc, const FieldPath& path, stdx::function<void(const Value&)> callback) { - visitAllValuesAtPathHelper(std::move(doc), path, 0, callback); + visitAllValuesAtPathHelper(doc, path, 0, callback); } } // namespace document_path_support |