From b8460468bcdb9f331d06afb2b3b9967bdf915aab Mon Sep 17 00:00:00 2001 From: Dan Engelbrecht Date: Wed, 8 Nov 2023 15:25:56 +0100 Subject: disk layer gc and error/warnings cleanup (#515) - Improvement: Use GC reserve when writing index/manifest for a disk cache bucket when disk is low when available - Improvement: Demote errors to warning for issues that are not critical and we handle gracefully - Improvement: Treat more out of memory errors from windows as Out Of Memory errors Fixed wrong sizeof() statement for compactcas index (luckily the two structs are of same size) --- src/zencore/except.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/zencore/except.cpp') diff --git a/src/zencore/except.cpp b/src/zencore/except.cpp index f98743ea9..d5eabea9d 100644 --- a/src/zencore/except.cpp +++ b/src/zencore/except.cpp @@ -119,8 +119,10 @@ IsOOM(const std::system_error& SystemError) case ERROR_NOT_ENOUGH_MEMORY: case ERROR_OUTOFMEMORY: case ERROR_PAGEFILE_QUOTA_EXCEEDED: + case ERROR_NO_SYSTEM_RESOURCES: case ERROR_NONPAGED_SYSTEM_RESOURCES: case ERROR_PAGED_SYSTEM_RESOURCES: + case ERROR_WORKING_SET_QUOTA: case ERROR_PAGEFILE_QUOTA: case ERROR_COMMITMENT_LIMIT: return true; -- cgit v1.2.3