diff options
| author | Dan Engelbrecht <[email protected]> | 2022-05-25 12:34:51 +0200 |
|---|---|---|
| committer | Dan Engelbrecht <[email protected]> | 2022-05-25 12:35:50 +0200 |
| commit | 49ad6da1f77daa8c91a087046d82ab78d2e41314 (patch) | |
| tree | 0c46104a0e204b07c25bbe280043348f2313f7e3 /zenserver/cache/structuredcachestore.h | |
| parent | drop bucket test (diff) | |
| download | zen-49ad6da1f77daa8c91a087046d82ab78d2e41314.tar.xz zen-49ad6da1f77daa8c91a087046d82ab78d2e41314.zip | |
If a bucket is in m_BucketMap it is OK, no need for separate flag
Diffstat (limited to 'zenserver/cache/structuredcachestore.h')
| -rw-r--r-- | zenserver/cache/structuredcachestore.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/zenserver/cache/structuredcachestore.h b/zenserver/cache/structuredcachestore.h index bae15231b..311e062be 100644 --- a/zenserver/cache/structuredcachestore.h +++ b/zenserver/cache/structuredcachestore.h @@ -233,7 +233,7 @@ private: CacheBucket(std::string BucketName); ~CacheBucket(); - void OpenOrCreate(std::filesystem::path BucketDir, bool AllowCreate = true); + bool OpenOrCreate(std::filesystem::path BucketDir, bool AllowCreate = true); bool Get(const IoHash& HashKey, ZenCacheValue& OutValue); void Put(const IoHash& HashKey, const ZenCacheValue& Value); void Drop(); @@ -243,7 +243,6 @@ private: void CollectGarbage(GcContext& GcCtx); void UpdateAccessTimes(const std::vector<zen::access_tracking::KeyAccessTime>& AccessTimes); - inline bool IsOk() const { return m_IsOk; } inline uint64_t TotalSize() const { return m_TotalSize.load(std::memory_order::relaxed); } private: @@ -255,7 +254,6 @@ private: std::filesystem::path m_BlocksBasePath; BlockStore m_BlockStore; Oid m_BucketId; - bool m_IsOk = false; uint64_t m_LargeObjectThreshold = 64 * 1024; // These files are used to manage storage of small objects for this bucket |