fix(client): Do not delete cache when released for trash rebuilding

close:#21990545

Signed-off-by: chihe <chihe@oppo.com>
This commit is contained in:
chihe 2025-06-20 15:51:05 +08:00 committed by zhumingze1108
parent 87eaebb8c2
commit 7b79861165

View File

@ -164,6 +164,12 @@ func (d *Dir) Release(ctx context.Context, req *fuse.ReleaseRequest) (err error)
log.LogDebugf("TRACE Release exit: ino(%v) name(%v)", d.info.Inode, d.name)
}()
d.dctx.Clear()
d.dcache.Clear()
ino := d.info.Inode
d.super.ic.Delete(ino)
d.super.fslock.Lock()
delete(d.super.nodeCache, ino)
d.super.fslock.Unlock()
return nil
}