diff options
| author | Per Larsson <[email protected]> | 2021-12-13 14:01:04 +0100 |
|---|---|---|
| committer | Per Larsson <[email protected]> | 2021-12-13 14:01:04 +0100 |
| commit | 4c58cfb3540bb64fd7fae72f1550b5b8d22d6878 (patch) | |
| tree | 694a342308e47a8ad3e9610b03b434e71ec6d949 /zenstore/include | |
| parent | Merge branch 'main' into gc (diff) | |
| download | zen-4c58cfb3540bb64fd7fae72f1550b5b8d22d6878.tar.xz zen-4c58cfb3540bb64fd7fae72f1550b5b8d22d6878.zip | |
Fixed bug in z$ GC.
Diffstat (limited to 'zenstore/include')
| -rw-r--r-- | zenstore/include/zenstore/gc.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/zenstore/include/zenstore/gc.h b/zenstore/include/zenstore/gc.h index 995453d47..fe93456c6 100644 --- a/zenstore/include/zenstore/gc.h +++ b/zenstore/include/zenstore/gc.h @@ -51,15 +51,15 @@ public: void ContributeCids(std::span<const IoHash> Cid); void ContributeCas(std::span<const IoHash> Hash); - void ContributeCacheKeys(std::vector<IoHash> ValidKeys, std::vector<IoHash> ExpiredKeys); + void ContributeCacheKeys(const std::string& Bucket, std::vector<IoHash> ValidKeys, std::vector<IoHash> ExpiredKeys); void IterateCids(std::function<void(const IoHash&)> Callback); void FilterCids(std::span<const IoHash> Cid, std::function<void(const IoHash&)> KeepFunc); void FilterCas(std::span<const IoHash> Cas, std::function<void(const IoHash&)> KeepFunc); - std::span<const IoHash> ValidCacheKeys() const; - std::span<const IoHash> ExpiredCacheKeys() const; + std::span<const IoHash> ValidCacheKeys(const std::string& Bucket) const; + std::span<const IoHash> ExpiredCacheKeys(const std::string& Bucket) const; bool IsDeletionMode() const; void SetDeletionMode(bool NewState); |