aboutsummaryrefslogtreecommitdiff
path: root/zenserver/cache/structuredcachestore.cpp
diff options
context:
space:
mode:
authorDan Engelbrecht <[email protected]>2022-05-30 13:59:48 +0200
committerDan Engelbrecht <[email protected]>2022-05-30 13:59:48 +0200
commit13385d08ce740a57de3662beffaf5cca4586c7e5 (patch)
treef5d6807ecbcb884ef698ebd499cf195beb98b9de /zenserver/cache/structuredcachestore.cpp
parentEnable FILE_SHARE_DELETE on standalone files in disk buckets (diff)
downloadzen-13385d08ce740a57de3662beffaf5cca4586c7e5.tar.xz
zen-13385d08ce740a57de3662beffaf5cca4586c7e5.zip
add comment about removing files
Diffstat (limited to 'zenserver/cache/structuredcachestore.cpp')
-rw-r--r--zenserver/cache/structuredcachestore.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/zenserver/cache/structuredcachestore.cpp b/zenserver/cache/structuredcachestore.cpp
index d1b242c5c..ee0835fd3 100644
--- a/zenserver/cache/structuredcachestore.cpp
+++ b/zenserver/cache/structuredcachestore.cpp
@@ -1833,6 +1833,7 @@ ZenCacheDiskLayer::CacheBucket::PutStandaloneCacheValue(const IoHash& HashKey, c
RwLock::ExclusiveLockScope ValueLock(LockForHash(HashKey));
+ // We do a speculative remove of the file instead of probing with a exists call and check the error code instead
std::filesystem::remove(FsPath, Ec);
if (Ec && Ec.value() != ENOENT)
{