fix(client): delete inode cache when write streamer is timeout

@formatter:off

Signed-off-by: chihe <chihe@oppo.com>
This commit is contained in:
chihe 2025-11-18 11:18:26 +08:00
parent 86f06bc00f
commit 428066c973

View File

@ -255,7 +255,7 @@ func (s *Streamer) server() {
if s.client.disableMetaCache || !s.needBCache {
log.LogDebugf("done server: delete streamer(%v)", s)
delete(s.client.streamers, s.inode)
if s.client.evictIcache != nil && !s.client.metaAcceleration {
if s.client.evictIcache != nil && s.openForWrite {
s.client.evictIcache(s.inode)
}
}