From 595b7c27d175b56bd296b33dc535818a05cdbadd Mon Sep 17 00:00:00 2001 From: Maksim Denisov Date: Mon, 1 Jul 2024 18:16:17 +0200 Subject: Pass StorageConfig to GarbageCollection --- src/buildtool/storage/garbage_collector.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/buildtool/storage/garbage_collector.hpp') 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 -- cgit v1.2.3