aboutsummaryrefslogtreecommitdiff
path: root/lib/compilers/swift.js
diff options
context:
space:
mode:
authorAustin Morton <austinpmorton@gmail.com>2019-08-23 10:10:16 -0400
committerAustin Morton <austinpmorton@gmail.com>2019-08-23 10:10:16 -0400
commitbe8b8aa2454ffae274516118ea47733824a3f941 (patch)
tree86d8527fe45e7afd4424f4ef70ef34de556a58fb /lib/compilers/swift.js
parent12380a4a954ad80465ca69fe5f7f9b3d88e70d48 (diff)
downloadcompiler-explorer-be8b8aa2454ffae274516118ea47733824a3f941.tar.gz
compiler-explorer-be8b8aa2454ffae274516118ea47733824a3f941.zip
Avoid deleting file when updating a key in disk cache
When setting a key, the file is written to disk first and then the cache entry is set. When the key already exists, the dispose callback will end up deleting the *updated* file from disk. This results in a cache entry with no corresponding file on disk.
Diffstat (limited to 'lib/compilers/swift.js')
0 files changed, 0 insertions, 0 deletions