]> git.ipfire.org Git - thirdparty/ccache.git/commit
enhance: Only keep atime if needed
authorJoel Rosdahl <joel@rosdahl.net>
Thu, 10 Nov 2022 09:15:12 +0000 (10:15 +0100)
committerJoel Rosdahl <joel@rosdahl.net>
Sun, 27 Nov 2022 20:33:50 +0000 (21:33 +0100)
commit0437820b47abe55e49f5fdb2ed189c4a1f23a611
tree87d018fcfbcc735dafed114367e4e70c6b154560
parent5d47a49ca00071f6660aa042012e4d35a0a0c651
enhance: Only keep atime if needed

- For the --recompress case, only reset timestamps if mtime has changed
  since local cache LRU cleanup always uses mtime.
- For the --trim-dir/--trim-recompress case, always reset timestamps
  since atime may be used for LRU cleanup.
src/core/FileRecompressor.cpp
src/core/FileRecompressor.hpp
src/core/mainoptions.cpp
src/storage/local/LocalStorage_compress.cpp