Don't delete base directories when evicting metacache (#5513)

This commit is contained in:
Alexandru Ionut Tripon 2026-05-11 11:15:43 +00:00 committed by GitHub
commit ecc551b44e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 34 additions and 1 deletions

View file

@ -182,7 +182,7 @@ auto HttpMetaCache::evictAll() -> bool
}
map.entry_list.clear();
// AND all return codes together so the result is true iff all runs of deletePath() are true
ret &= FS::deletePath(map.base_path);
ret &= FS::deleteContents(map.base_path);
}
return ret;
}