aboutsummaryrefslogtreecommitdiff
path: root/zenstore/basicfile.cpp
diff options
context:
space:
mode:
authorDan Engelbrecht <[email protected]>2022-05-28 00:29:17 +0200
committerDan Engelbrecht <[email protected]>2022-05-28 00:29:17 +0200
commitda0ca23fa55f7e900853bdfd06523b78fce32259 (patch)
tree8b2190cb5341d01fcd9efa9026b1b14f227123bc /zenstore/basicfile.cpp
parentHorde execute compressed input blobs (#109) (diff)
downloadzen-da0ca23fa55f7e900853bdfd06523b78fce32259.tar.xz
zen-da0ca23fa55f7e900853bdfd06523b78fce32259.zip
Enable FILE_SHARE_DELETE on standalone files in disk buckets
This allows us to delete the file even if it is open for read. We do a delete, the rename since we are not allowed to do a rename-overwrite, only delete. As we have the shard lock for the file we want to replace we can safely do a delete+rename. In the rare case that we fail to rename the file into place the old data is lost. As this is a *cache* and it should be very rare this is OK.
Diffstat (limited to 'zenstore/basicfile.cpp')
0 files changed, 0 insertions, 0 deletions