diff options
Diffstat (limited to 'src/buildtool/execution_api/local/local_cas.hpp')
-rw-r--r-- | src/buildtool/execution_api/local/local_cas.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/buildtool/execution_api/local/local_cas.hpp b/src/buildtool/execution_api/local/local_cas.hpp index 470c38b9..f5158662 100644 --- a/src/buildtool/execution_api/local/local_cas.hpp +++ b/src/buildtool/execution_api/local/local_cas.hpp @@ -52,8 +52,8 @@ class LocalCAS { Logger logger_{std::string{"LocalCAS"} + kSuffix}; std::filesystem::path const cache_root_{ LocalExecutionConfig::GetCacheDir()}; - FileStorage<kType> file_store_{cache_root_ / - (std::string{"cas"} + kSuffix)}; + FileStorage<kType, StoreMode::FirstWins, /*kSetEpochTime=*/true> + file_store_{cache_root_ / (std::string{"cas"} + kSuffix)}; [[nodiscard]] static auto CreateDigest(std::string const& bytes) noexcept -> std::optional<bazel_re::Digest> { |