| 165 | |
| 166 | |
| 167 | size_t SensitiveDataMasker::wipeSensitiveData(std::string & data) const |
| 168 | { |
| 169 | size_t matches = 0; |
| 170 | for (const auto & rule : all_masking_rules) |
| 171 | matches += rule->apply(data); |
| 172 | |
| 173 | if (matches) |
| 174 | ProfileEvents::increment(ProfileEvents::QueryMaskingRulesMatch, matches); |
| 175 | |
| 176 | return matches; |
| 177 | } |
| 178 | |
| 179 | #ifndef NDEBUG |
| 180 | void SensitiveDataMasker::printStats() |