优化内存缓存相关代码

This commit is contained in:
刘祥超
2023-10-09 12:48:30 +08:00
parent 6bff5c978b
commit 534d64673f
2 changed files with 14 additions and 12 deletions

View File

@@ -126,9 +126,7 @@ func (this *MemoryFragmentPool) Get(expectSize int64) (resultBytes []byte, ok bo
return
}
if expectSize < minMemoryFragmentPoolItemSize {
return
}
// DO NOT check min segment size
this.mu.RLock()