]> git.ipfire.org Git - thirdparty/knot-resolver.git/commit
utils/cache_gc: tolerate ESPACE unless twice in a row
authorVladimír Čunát <vladimir.cunat@nic.cz>
Tue, 18 Aug 2020 09:34:43 +0000 (11:34 +0200)
committerPetr Špaček <petr.spacek@nic.cz>
Mon, 7 Sep 2020 15:47:11 +0000 (17:47 +0200)
commita98f8abd658cf5cd065300f2fb24f52ef590207f
treed8fd18c442435352972a60e13f1e36f0dda2b13d
parentc651fbf24017f26435b86e69e9ce73c7f5976b97
utils/cache_gc: tolerate ESPACE unless twice in a row

In the unlikely case that GC happens "too late", it could fail when
deleting, in which case it seems best to reopen the cache and try again,
as it will probably be deleted by a kresd instance by the next interval.
utils/cache_gc/kr_cache_gc.c
utils/cache_gc/main.c