Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
Signed-off-by: tabokie <xy.tao@outlook.com>
  • Loading branch information
tabokie committed Jun 29, 2023
1 parent c23642b commit 467eb68
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test_util/testutil.h
Original file line number Diff line number Diff line change
Expand Up @@ -87,14 +87,14 @@ class TestKeyManager : public encryption::KeyManager {
std::lock_guard<std::mutex> l(mutex);
file_set.erase(fname);
if (!fname.empty()) {
std::string fname = fname;
if (fname.back() != '/') {
fname.push_back('/');
std::string copy = fname;
if (copy.back() != '/') {
copy.push_back('/');
}
auto begin = file_set.lower_bound(fname);
auto begin = file_set.lower_bound(copy);
auto end = begin;
while (end != file_set.end() &&
end->compare(0, fname.size(), fname) == 0) {
end->compare(0, copy.size(), copy) == 0) {
end++;
}
file_set.erase(begin, end);
Expand Down

0 comments on commit 467eb68

Please sign in to comment.