settings: key check with string view

make our string comparisons nicer
also clean-up namespaces for storage access
This commit is contained in:
Maxim Prokhorov
2022-08-29 04:09:58 +03:00
parent deffe551ed
commit 3e36438748
34 changed files with 220 additions and 203 deletions

View File

@@ -36,7 +36,7 @@ namespace {
void deletePrefixes(query::StringViewIterator prefixes) {
std::vector<String> to_purge;
internal::foreach_prefix([&](StringView, String key, const kvs_type::ReadResult&) {
foreach_prefix([&](StringView, String key, const kvs_type::ReadResult&) {
to_purge.push_back(std::move(key));
}, prefixes);