summaryrefslogtreecommitdiff
path: root/src/mongo/db/pipeline/document_source_match_test.cpp
diff options
context:
space:
mode:
authorDavid Storch <david.storch@10gen.com>2017-12-14 14:49:07 -0500
committerDavid Storch <david.storch@10gen.com>2017-12-18 18:38:16 -0500
commit01c39d416435f930d249701ccb71744b519873b5 (patch)
treea288e6c965cfbb9c77a1f92afa41480a71c8b0d9 /src/mongo/db/pipeline/document_source_match_test.cpp
parent85e1ed33ef2fc83e870124441eee7e036b8118a4 (diff)
downloadmongo-01c39d416435f930d249701ccb71744b519873b5.tar.gz
SERVER-31760 Add InternalExprEqMatchExpression.
Diffstat (limited to 'src/mongo/db/pipeline/document_source_match_test.cpp')
-rw-r--r--src/mongo/db/pipeline/document_source_match_test.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mongo/db/pipeline/document_source_match_test.cpp b/src/mongo/db/pipeline/document_source_match_test.cpp
index 84a3ac6c01c..4e14a990c7a 100644
--- a/src/mongo/db/pipeline/document_source_match_test.cpp
+++ b/src/mongo/db/pipeline/document_source_match_test.cpp
@@ -128,6 +128,10 @@ TEST_F(DocumentSourceMatchTest, RedactSafePortion) {
assertExpectedRedactSafePortion("{a: {$_internalSchemaType: 2}}", "{}");
+ // In some cases, $_internalExprEq could be redact-safe (just like a regular $eq match
+ // expression), but this optimization is not yet implemented.
+ assertExpectedRedactSafePortion("{a: {$_internalExprEq: 2}}", "{}");
+
// Combinations
assertExpectedRedactSafePortion("{a:1, b: 'asdf'}", "{a:1, b: 'asdf'}");