| 223 | } |
| 224 | |
| 225 | size_t SensitiveDataMasker::wipeSensitiveData(std::string & data) const |
| 226 | { |
| 227 | size_t matches = 0; |
| 228 | for (const auto & rule : all_masking_rules) |
| 229 | matches += rule->applyNoThrow(data); |
| 230 | |
| 231 | if (matches) |
| 232 | ProfileEvents::increment(ProfileEvents::QueryMaskingRulesMatch, matches); |
| 233 | |
| 234 | return matches; |
| 235 | } |
| 236 | |
| 237 | #ifndef NDEBUG |
| 238 | void SensitiveDataMasker::printStats() |