summaryrefslogtreecommitdiff
path: root/src/buildtool/execution_api/local/local_ac.hpp
diff options
context:
space:
mode:
authorOliver Reiche <oliver.reiche@huawei.com>2022-03-09 18:11:20 +0100
committerOliver Reiche <oliver.reiche@huawei.com>2022-03-09 18:11:20 +0100
commitd6105778839cbdae5bfd234d54929b972328a6ee (patch)
treee037420649d3c9e01efb59e8f6594f1b19439242 /src/buildtool/execution_api/local/local_ac.hpp
parentf08ea2051eeff565d7d63d721371206133c48b63 (diff)
downloadjustbuild-d6105778839cbdae5bfd234d54929b972328a6ee.tar.gz
LocalCAS: Set epoch time for every entry
... and refactor static constant to proper format `kFdLess`.
Diffstat (limited to 'src/buildtool/execution_api/local/local_ac.hpp')
-rw-r--r--src/buildtool/execution_api/local/local_ac.hpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/buildtool/execution_api/local/local_ac.hpp b/src/buildtool/execution_api/local/local_ac.hpp
index f319940a..f8cc3b7a 100644
--- a/src/buildtool/execution_api/local/local_ac.hpp
+++ b/src/buildtool/execution_api/local/local_ac.hpp
@@ -76,7 +76,8 @@ class LocalAC {
gsl::not_null<LocalCAS<ObjectType::File>*> cas_;
std::filesystem::path const cache_root_{
LocalExecutionConfig::GetCacheDir()};
- FileStorage<ObjectType::File, kStoreMode> file_store_{cache_root_ / "ac"};
+ FileStorage<ObjectType::File, kStoreMode, /*kSetEpochTime=*/false>
+ file_store_{cache_root_ / "ac"};
};
#endif // INCLUDED_SRC_BUILDTOOL_EXECUTION_API_LOCAL_LOCAL_AC_HPP