diff options
author | Charlie Swanson <charlie.swanson@mongodb.com> | 2018-08-27 12:34:45 -0400 |
---|---|---|
committer | Charlie Swanson <charlie.swanson@mongodb.com> | 2018-08-27 17:45:59 -0400 |
commit | 4422204cd233c1fd0e70b71223feb62d3df54a18 (patch) | |
tree | e4f51fa0317b836bae45fad27b17facc028fdaf6 /src/mongo/db/pipeline/field_path.h | |
parent | 820fca1bc1c3698c3b4577f4644bf8dbadf91fc0 (diff) | |
download | mongo-4422204cd233c1fd0e70b71223feb62d3df54a18.tar.gz |
SERVER-36424 Enforce uniqueKey is unique enough
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 64fa7fe0611..25015a6f644 100644 --- a/src/mongo/db/pipeline/field_path.h +++ b/src/mongo/db/pipeline/field_path.h @@ -123,4 +123,8 @@ private: inline bool operator<(const FieldPath& lhs, const FieldPath& rhs) { return lhs.fullPath() < rhs.fullPath(); } + +inline bool operator==(const FieldPath& lhs, const FieldPath& rhs) { + return lhs.fullPath() == rhs.fullPath(); +} } |