mirror of
https://github.com/cubefs/cubefs.git
synced 2026-08-02 02:00:56 +00:00
fix(client): delete inode cache when write streamer is timeout
@formatter:off Signed-off-by: chihe <chihe@oppo.com>
This commit is contained in:
parent
86f06bc00f
commit
428066c973
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user