Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cloud_storage: Force exhaustive trim when fast trim fails
In the case where the cache dir consists solely of index+tx files, the current code path in fast trim does not remove anything. This should be followed up by an exhaustive trim to free up slots in cache, but due to an adjustment of the objects to delete counter, this ends up not happening. The change here makes sure that if we have a certain count of objects to delete, and we were not able to delete the count, and there is a set of filtered out files, we proceed to do an exhaustive trim.
- Loading branch information