Commit 397d025
authored
Make dir::Size() ignore deleted files. (#1267)
Cache is the only thing we currently need to check size. During
compaction leveldb moves files around. lstat() will return an error
if current file is removed. In such cases dir::Size() returns 0 making
it impossible to use the method for `live` cache.
The issue is related only to unix systems, windows workflow shoud be
fine.
Resolves: OAM-1303
Signed-off-by: Kostiantyn Zvieriev <[email protected]>1 parent f4add0a commit 397d025
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
467 | 467 | | |
468 | 468 | | |
469 | 469 | | |
470 | | - | |
| 470 | + | |
| 471 | + | |
471 | 472 | | |
472 | 473 | | |
473 | 474 | | |
| |||
0 commit comments