summaryrefslogtreecommitdiff
path: root/src/mongo/db/pipeline/document.cpp
diff options
context:
space:
mode:
authorCharlie Swanson <charlie.swanson@mongodb.com>2017-01-19 13:15:24 -0500
committerCharlie Swanson <charlie.swanson@mongodb.com>2017-01-20 15:35:14 -0500
commitd60dd07f3f470b702092b6b54e15586a5177d8a1 (patch)
treed98831d11a724d99ceccf9d8df6560399ba8b65b /src/mongo/db/pipeline/document.cpp
parent2c6c114e3952e952de1a395f987f1c5b83d209fe (diff)
downloadmongo-d60dd07f3f470b702092b6b54e15586a5177d8a1.tar.gz
SERVER-27437 Add dotted path expansion for Documents.
Diffstat (limited to 'src/mongo/db/pipeline/document.cpp')
-rw-r--r--src/mongo/db/pipeline/document.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/mongo/db/pipeline/document.cpp b/src/mongo/db/pipeline/document.cpp
index 627bafdfd78..573949afb8d 100644
--- a/src/mongo/db/pipeline/document.cpp
+++ b/src/mongo/db/pipeline/document.cpp
@@ -354,10 +354,9 @@ static Value getNestedFieldHelper(const Document& doc,
return getNestedFieldHelper(val.getDocument(), fieldNames, positions, level + 1);
}
-const Value Document::getNestedField(const FieldPath& fieldNames,
- vector<Position>* positions) const {
- fassert(16489, fieldNames.getPathLength());
- return getNestedFieldHelper(*this, fieldNames, positions, 0);
+const Value Document::getNestedField(const FieldPath& path, vector<Position>* positions) const {
+ fassert(16489, path.getPathLength());
+ return getNestedFieldHelper(*this, path, positions, 0);
}
size_t Document::getApproximateSize() const {