Closed jiangliu closed 1 year ago
Merging #536 (fd4be45) into main (0da2966) will decrease coverage by
0.01%
. Report is 1 commits behind head on main. The diff coverage is0.00%
.
Why not check if the cacheMgr is nil?
It seems stargzResolver
and referrerMgr
also have the same problem.
Why not check if the cacheMgr is nil? It seems
stargzResolver
andreferrerMgr
also have the same problem.
With the evolution of nydus-snapshotter, cache manager
becomes mandatory instead optional now. On the other hand, stargzResolver
and referrerMgr
are optional.
Filesystem.cacheMgr is null when cacheManager.Disable is configured to be true, thus cause null pointer access. Fix it by always create the cacheMgr object no matter cacheManager.Disable is true or false.