diff options
author | Maksim Denisov <denisov.maksim@huawei.com> | 2024-07-01 18:16:17 +0200 |
---|---|---|
committer | Maksim Denisov <denisov.maksim@huawei.com> | 2024-07-05 12:58:35 +0200 |
commit | 595b7c27d175b56bd296b33dc535818a05cdbadd (patch) | |
tree | 75f946b36d51ff17e22c0ffece4ce3f291d18772 /src/buildtool/storage/garbage_collector.hpp | |
parent | b5a29ec0daf024fde9bd06f76cab8a12fd509aab (diff) | |
download | justbuild-595b7c27d175b56bd296b33dc535818a05cdbadd.tar.gz |
Pass StorageConfig to GarbageCollection
Diffstat (limited to 'src/buildtool/storage/garbage_collector.hpp')
-rw-r--r-- | src/buildtool/storage/garbage_collector.hpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/buildtool/storage/garbage_collector.hpp b/src/buildtool/storage/garbage_collector.hpp index 18c9b280..86486d48 100644 --- a/src/buildtool/storage/garbage_collector.hpp +++ b/src/buildtool/storage/garbage_collector.hpp @@ -80,6 +80,7 @@ class GarbageCollector { /// will include rotation of generations and deleting the oldest generation. /// \returns true on success. [[nodiscard]] auto static TriggerGarbageCollection( + StorageConfig const& storage_config, bool no_rotation = false) noexcept -> bool; /// \brief Acquire shared lock to prevent garbage collection from running. @@ -102,7 +103,8 @@ class GarbageCollector { /// \param threshold Compactification threshold. /// \return True if the youngest generation does not contain splicable /// objects afterwards. - [[nodiscard]] auto static Compactify(size_t threshold) noexcept -> bool; + [[nodiscard]] auto static Compactify(StorageConfig const& storage_config, + size_t threshold) noexcept -> bool; }; #endif // INCLUDED_SRC_BUILDTOOL_STORAGE_GARBAGE_COLLECTOR_HPP |