summaryrefslogtreecommitdiff
path: root/src/mongo/db/query/projection_ast_test.cpp
diff options
context:
space:
mode:
authorWill Buerger <will.buerger@mongodb.com>2023-04-04 16:59:04 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2023-04-04 21:32:50 +0000
commitd79d53bdb2e9ecc13b72b8ab77124f9e21b1514f (patch)
tree960591171f63e132dfd712530bb05d6a91bbb1f1 /src/mongo/db/query/projection_ast_test.cpp
parent6989337f513dcbe867638dc1a32e71f71a31c758 (diff)
downloadmongo-d79d53bdb2e9ecc13b72b8ab77124f9e21b1514f.tar.gz
SERVER-75343: Fix and centralize identifier redaction in SerializationOptions
Diffstat (limited to 'src/mongo/db/query/projection_ast_test.cpp')
-rw-r--r--src/mongo/db/query/projection_ast_test.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/query/projection_ast_test.cpp b/src/mongo/db/query/projection_ast_test.cpp
index 16e7e7463b0..13959074151 100644
--- a/src/mongo/db/query/projection_ast_test.cpp
+++ b/src/mongo/db/query/projection_ast_test.cpp
@@ -780,8 +780,8 @@ std::string redactFieldNameForTest(StringData s) {
TEST_F(ProjectionASTTest, TestASTRedaction) {
SerializationOptions options;
options.replacementForLiteralArgs = "?";
- options.redactFieldNames = true;
- options.redactFieldNamesStrategy = redactFieldNameForTest;
+ options.redactIdentifiers = true;
+ options.identifierRedactionPolicy = redactFieldNameForTest;
auto proj = fromjson("{'a.b': 1}");