cache: Clean up temporary mount pool on restart

Signed-off-by: Kohei Tokunaga <ktokunaga.mail@gmail.com>
This commit is contained in:
Kohei Tokunaga
2022-02-16 18:30:25 +09:00
parent 99f6199fa6
commit 3b7422996a
11 changed files with 89 additions and 7 deletions

View File

@@ -373,6 +373,7 @@ func newHTTPSource(tmpdir string) (source.Source, error) {
Applier: applier,
Differ: differ,
GarbageCollect: mdb.GarbageCollect,
MountPoolRoot: filepath.Join(tmpdir, "cachemounts"),
})
if err != nil {
return nil, err