Commit ccdf6ec
authored
Open cache in r/o mode on
Since protected cache could be used as a static cache it is expected
to be able to use it even when there is no available space on device.
But when protected cache is being open in R/W mode levelDb may try to
create some files and this failure would be treated later as a corrupted
cache.
Instead, on `no space left` errors we will try to open the cache again
but in read-only mode to enforce static behavior.
Relates-To: OLPSUP-21193
Signed-off-by: Andrey Kashcheev <ext-andrey.kashcheev@here.com>no space left errors (#1375)1 parent 94402c9 commit ccdf6ec
File tree
3 files changed
+25
-0
lines changed- olp-cpp-sdk-core/src/cache
3 files changed
+25
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
| 131 | + | |
131 | 132 | | |
132 | 133 | | |
133 | 134 | | |
| |||
847 | 848 | | |
848 | 849 | | |
849 | 850 | | |
| 851 | + | |
850 | 852 | | |
851 | 853 | | |
852 | 854 | | |
853 | 855 | | |
854 | 856 | | |
855 | 857 | | |
| 858 | + | |
| 859 | + | |
| 860 | + | |
| 861 | + | |
| 862 | + | |
| 863 | + | |
| 864 | + | |
| 865 | + | |
| 866 | + | |
| 867 | + | |
| 868 | + | |
| 869 | + | |
| 870 | + | |
| 871 | + | |
856 | 872 | | |
857 | 873 | | |
858 | 874 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
247 | 247 | | |
248 | 248 | | |
249 | 249 | | |
| 250 | + | |
| 251 | + | |
| 252 | + | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
250 | 257 | | |
251 | 258 | | |
252 | 259 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| 60 | + | |
| 61 | + | |
60 | 62 | | |
61 | 63 | | |
62 | 64 | | |
| |||
0 commit comments