diff options
author | Ted Tuckman <ted.tuckman@mongodb.com> | 2023-05-03 13:36:39 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2023-05-03 14:38:45 +0000 |
commit | 8e79f414b58d1ca97027312cd721dfecb636ce69 (patch) | |
tree | 0ab65b51b07a51277a1a3a58ca1c943f564ff030 /src/mongo/db/pipeline/expression.cpp | |
parent | 280c055694d28c5eb8a88f9f676a92c67dc2f72f (diff) | |
download | mongo-8e79f414b58d1ca97027312cd721dfecb636ce69.tar.gz |
SERVER-76424 Replace 'redact' with 'hmac' in $telemetry syntax
Diffstat (limited to 'src/mongo/db/pipeline/expression.cpp')
-rw-r--r-- | src/mongo/db/pipeline/expression.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/db/pipeline/expression.cpp b/src/mongo/db/pipeline/expression.cpp index 2f4c725865b..0ef3a2db975 100644 --- a/src/mongo/db/pipeline/expression.cpp +++ b/src/mongo/db/pipeline/expression.cpp @@ -2608,7 +2608,7 @@ Value ExpressionFieldPath::serialize(SerializationOptions options) const { auto [prefix, path] = getPrefixAndPath(_fieldPath); // First handles special cases for redaction of system variables. User variables will fall // through to the default full redaction case. - if (options.redactIdentifiers && prefix.length() == 2) { + if (options.applyHmacToIdentifiers && prefix.length() == 2) { if (path.getPathLength() == 1 && Variables::isBuiltin(_variable)) { // Nothing to redact for builtin variables. return Value(prefix + path.fullPath()); @@ -2956,8 +2956,8 @@ Value ExpressionLet::serialize(SerializationOptions options) const { for (VariableMap::const_iterator it = _variables.begin(), end = _variables.end(); it != end; ++it) { auto key = it->second.name; - if (options.redactIdentifiers) { - key = options.identifierRedactionPolicy(key); + if (options.applyHmacToIdentifiers) { + key = options.identifierHmacPolicy(key); } vars[key] = it->second.expression->serialize(options); } |