diff options
author | Oliver Reiche <oliver.reiche@huawei.com> | 2022-03-09 18:11:20 +0100 |
---|---|---|
committer | Oliver Reiche <oliver.reiche@huawei.com> | 2022-03-09 18:11:20 +0100 |
commit | b44ba08941f87c3f03fefd54cab2d12012fa01ca (patch) | |
tree | f6521829a63356283df9a5cf1d61214e28a14ca6 /test/buildtool/file_system/file_system_manager.test.cpp | |
parent | eddf9107720bbcce6e2cebf4b7cfa63e8e7ede2c (diff) | |
download | justbuild-b44ba08941f87c3f03fefd54cab2d12012fa01ca.tar.gz |
FileStorage: Avoid rename for owned files
... and therefore split the common `AtomicAdd()` into two functions
for adding from bytes or file path. The procedure for adding from
bytes remains the same. For adding from file path, we can link the
file directly and skip the rename, if the file did not exist and we
have ownership.
Diffstat (limited to 'test/buildtool/file_system/file_system_manager.test.cpp')
0 files changed, 0 insertions, 0 deletions