diff options
| author | Dan Engelbrecht <[email protected]> | 2023-11-08 15:25:56 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2023-11-08 15:25:56 +0100 |
| commit | b8460468bcdb9f331d06afb2b3b9967bdf915aab (patch) | |
| tree | d398e0b6c1d8590c237ff8611020621d942078f1 /src/zencore/except.cpp | |
| parent | implemented openssl-free encryption for Windows (#520) (diff) | |
| download | zen-b8460468bcdb9f331d06afb2b3b9967bdf915aab.tar.xz zen-b8460468bcdb9f331d06afb2b3b9967bdf915aab.zip | |
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)
Diffstat (limited to 'src/zencore/except.cpp')
| -rw-r--r-- | src/zencore/except.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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; |