mount: do not mark meta_cache when there is an err

This commit is contained in:
Robert Coelho 2022-05-24 12:13:15 -04:00
parent a67ad1e9e5
commit 05602167f4

View file

@ -68,8 +68,9 @@ func doEnsureVisited(mc *MetaCache, client filer_pb.FilerClient, path util.FullP
if err != nil {
err = fmt.Errorf("list %s: %v", path, err)
} else {
mc.markCachedFn(path)
}
mc.markCachedFn(path)
return err
}