mirror of
https://github.com/cubefs/cubefs.git
synced 2026-08-02 02:00:56 +00:00
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:
parent
87eaebb8c2
commit
7b79861165
@ -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
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user