diff options
author | Nick Zolnierz <nicholas.zolnierz@mongodb.com> | 2018-07-26 16:00:20 -0400 |
---|---|---|
committer | Nick Zolnierz <nicholas.zolnierz@mongodb.com> | 2018-08-02 12:23:03 -0400 |
commit | afbe688f0f18c5cb474fb1bcd933d6e06c0c5291 (patch) | |
tree | a7c1a3192f335c5e2947e395159eaa03782c3a50 /src/mongo/db/pipeline/field_path.h | |
parent | afaf46687eb3930ddbfc8b528bd68295b6a09676 (diff) | |
download | mongo-afbe688f0f18c5cb474fb1bcd933d6e06c0c5291.tar.gz |
SERVER-35896: Support 'replaceDocuments' mode in $out
Diffstat (limited to 'src/mongo/db/pipeline/field_path.h')
-rw-r--r-- | src/mongo/db/pipeline/field_path.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mongo/db/pipeline/field_path.h b/src/mongo/db/pipeline/field_path.h index 171bf89a5a3..64fa7fe0611 100644 --- a/src/mongo/db/pipeline/field_path.h +++ b/src/mongo/db/pipeline/field_path.h @@ -119,4 +119,8 @@ private: // lookup. std::vector<size_t> _fieldPathDotPosition; }; + +inline bool operator<(const FieldPath& lhs, const FieldPath& rhs) { + return lhs.fullPath() < rhs.fullPath(); +} } |