diff options
author | Will Buerger <will.buerger@mongodb.com> | 2023-04-04 16:59:04 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2023-04-04 21:32:50 +0000 |
commit | d79d53bdb2e9ecc13b72b8ab77124f9e21b1514f (patch) | |
tree | 960591171f63e132dfd712530bb05d6a91bbb1f1 /src/mongo/db/query/query_shape.cpp | |
parent | 6989337f513dcbe867638dc1a32e71f71a31c758 (diff) | |
download | mongo-d79d53bdb2e9ecc13b72b8ab77124f9e21b1514f.tar.gz |
SERVER-75343: Fix and centralize identifier redaction in SerializationOptions
Diffstat (limited to 'src/mongo/db/query/query_shape.cpp')
-rw-r--r-- | src/mongo/db/query/query_shape.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/db/query/query_shape.cpp b/src/mongo/db/query/query_shape.cpp index fcfe0cb361e..4f5bddc1788 100644 --- a/src/mongo/db/query/query_shape.cpp +++ b/src/mongo/db/query/query_shape.cpp @@ -38,11 +38,11 @@ BSONObj predicateShape(const MatchExpression* predicate) { } BSONObj predicateShape(const MatchExpression* predicate, - std::function<std::string(StringData)> redactFieldNamesStrategy) { + std::function<std::string(StringData)> identifierRedactionPolicy) { SerializationOptions opts; opts.replacementForLiteralArgs = kLiteralArgString; - opts.redactFieldNamesStrategy = redactFieldNamesStrategy; - opts.redactFieldNames = true; + opts.identifierRedactionPolicy = identifierRedactionPolicy; + opts.redactIdentifiers = true; return predicate->serialize(opts); } |