diff options
author | David Storch <david.storch@10gen.com> | 2016-08-09 14:59:00 -0400 |
---|---|---|
committer | David Storch <david.storch@10gen.com> | 2016-08-10 16:53:20 -0400 |
commit | d9bb24e5f5af34862182424b890762cb2c3e9bc8 (patch) | |
tree | 0f7244684d3a9615f2a23af14f3725dd60e1af7e /src/mongo/db/pipeline/value_comparator.cpp | |
parent | 08b8ccece70c72a88162604734f895f0d8e35d10 (diff) | |
download | mongo-d9bb24e5f5af34862182424b890762cb2c3e9bc8.tar.gz |
SERVER-25139 make $graphLookup's cache collation-aware
Ensures that comparisons made during graph traversal respect
the collation. Deduplication using _id, however, does not
use the collation, in order to ensure that node identity is
preserved.
Diffstat (limited to 'src/mongo/db/pipeline/value_comparator.cpp')
-rw-r--r-- | src/mongo/db/pipeline/value_comparator.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mongo/db/pipeline/value_comparator.cpp b/src/mongo/db/pipeline/value_comparator.cpp index a20a9460b6d..87eb92b73a6 100644 --- a/src/mongo/db/pipeline/value_comparator.cpp +++ b/src/mongo/db/pipeline/value_comparator.cpp @@ -34,6 +34,8 @@ namespace mongo { +const ValueComparator ValueComparator::kInstance{}; + bool ValueComparator::evaluate(Value::DeferredComparison deferredComparison) const { int cmp = Value::compare(deferredComparison.lhs, deferredComparison.rhs, _stringComparator); switch (deferredComparison.type) { |