diff options
| author | Dan Engelbrecht <[email protected]> | 2022-05-25 12:39:59 +0200 |
|---|---|---|
| committer | Dan Engelbrecht <[email protected]> | 2022-05-25 12:39:59 +0200 |
| commit | 0e325ea21a56a154bdf4b92745095c588f69c817 (patch) | |
| tree | 61dba45365af7ee94f333a915623bba39dddb72f /zenserver/cache/structuredcachestore.cpp | |
| parent | If a bucket is in m_BucketMap it is OK, no need for separate flag (diff) | |
| download | zen-0e325ea21a56a154bdf4b92745095c588f69c817.tar.xz zen-0e325ea21a56a154bdf4b92745095c588f69c817.zip | |
dropIndex -> DropIndex
Diffstat (limited to 'zenserver/cache/structuredcachestore.cpp')
| -rw-r--r-- | zenserver/cache/structuredcachestore.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/zenserver/cache/structuredcachestore.cpp b/zenserver/cache/structuredcachestore.cpp index bb85f9824..9ebec1e76 100644 --- a/zenserver/cache/structuredcachestore.cpp +++ b/zenserver/cache/structuredcachestore.cpp @@ -1179,7 +1179,7 @@ ZenCacheDiskLayer::CacheBucket::Put(const IoHash& HashKey, const ZenCacheValue& static bool DeleteBucketFromDisk(const std::filesystem::path& BucketDir, std::string_view BucketName) { - int dropIndex = 0; + int DropIndex = 0; do { if (!std::filesystem::exists(BucketDir)) @@ -1187,11 +1187,11 @@ DeleteBucketFromDisk(const std::filesystem::path& BucketDir, std::string_view Bu return false; } - std::string DroppedBucketName = fmt::format("[dropped]{}({})", BucketName, dropIndex); + std::string DroppedBucketName = fmt::format("[dropped]{}({})", BucketName, DropIndex); std::filesystem::path DroppedBucketPath = BucketDir.parent_path() / DroppedBucketName; if (std::filesystem::exists(DroppedBucketPath)) { - dropIndex++; + DropIndex++; continue; } |