aboutsummaryrefslogtreecommitdiff
path: root/clang/docs
diff options
context:
space:
mode:
authorKadir Cetinkaya <kadircet@google.com>2018-12-17 12:38:22 +0000
committerKadir Cetinkaya <kadircet@google.com>2018-12-17 12:38:22 +0000
commite913b956aa90a2ab7b9723b804617548827c11d7 (patch)
tree55f7b3fcd1b8dfe3cd99fb18948ab0077a93a121 /clang/docs
parentbeb7bb61927cd875439d0e5c4ca75b3796a1d93f (diff)
[clangd] Change diskbackedstorage to be atomic
Summary: There was a chance that multiple clangd instances could try to write same shard, in which case we would get a malformed file most likely. This patch changes the writing mechanism to first write to a temporary file and then rename it to fit real destination. Which is guaranteed to be atomic by POSIX. Reviewers: ilya-biryukov Subscribers: ioeric, MaskRay, jkorous, arphaman, jfb, cfe-commits Differential Revision: https://reviews.llvm.org/D55417 llvm-svn: 349348
Diffstat (limited to 'clang/docs')
0 files changed, 0 insertions, 0 deletions