diff options
Diffstat (limited to 'src/mongo/db/pipeline/document_source_plan_cache_stats_test.cpp')
-rw-r--r-- | src/mongo/db/pipeline/document_source_plan_cache_stats_test.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/pipeline/document_source_plan_cache_stats_test.cpp b/src/mongo/db/pipeline/document_source_plan_cache_stats_test.cpp index 126c3e90374..1c803c311d6 100644 --- a/src/mongo/db/pipeline/document_source_plan_cache_stats_test.cpp +++ b/src/mongo/db/pipeline/document_source_plan_cache_stats_test.cpp @@ -155,10 +155,10 @@ TEST_F(DocumentSourcePlanCacheStatsTest, RedactsSuccessfullyAfterAbsorbingMatch) SerializationOptions options; options.replacementForLiteralArgs = "?"; - options.redactFieldNamesStrategy = [](StringData s) -> std::string { + options.identifierRedactionPolicy = [](StringData s) -> std::string { return str::stream() << "HASH<" << s << ">"; }; - options.redactFieldNames = true; + options.redactIdentifiers = true; pipeline->optimizePipeline(); ASSERT_EQ(1u, pipeline->getSources().size()); |