MCPcopy Create free account
hub / github.com/ByConity/ByConity / wipeSensitiveData

Method wipeSensitiveData

src/Common/SensitiveDataMasker.cpp:167–177  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

165
166
167size_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
180void SensitiveDataMasker::printStats()

Callers 4

logMethod · 0.80
TESTFunction · 0.80
prepareQueryForLoggingFunction · 0.80

Calls 2

incrementFunction · 0.70
applyMethod · 0.45

Tested by 1

TESTFunction · 0.64