diff options
Diffstat (limited to 'src/buildtool/execution_api/execution_service/operation_cache.hpp')
-rw-r--r-- | src/buildtool/execution_api/execution_service/operation_cache.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/buildtool/execution_api/execution_service/operation_cache.hpp b/src/buildtool/execution_api/execution_service/operation_cache.hpp index 25ca49a7..2467add7 100644 --- a/src/buildtool/execution_api/execution_service/operation_cache.hpp +++ b/src/buildtool/execution_api/execution_service/operation_cache.hpp @@ -63,8 +63,8 @@ class OperationCache { std::size_t threshold_{1U << kDefaultExponent}; void SetInternal(std::string const& action, Operation const& op) { - GarbageCollection(); std::unique_lock lock{mutex_}; + GarbageCollection(); cache_[action] = op; } |