mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-09-19 19:39:56 +08:00
mount: fix
fix bug found by git bisect, but I do not understand why it can cause error!
This commit is contained in:
@@ -90,9 +90,7 @@ func (c *ChunkCache) SetChunk(fileId string, data []byte) {
|
||||
c.Lock()
|
||||
defer c.Unlock()
|
||||
|
||||
if existingData := c.doGetChunk(fileId); len(existingData)==0{
|
||||
c.doSetChunk(fileId, data)
|
||||
}
|
||||
c.doSetChunk(fileId, data)
|
||||
}
|
||||
|
||||
func (c *ChunkCache) doSetChunk(fileId string, data []byte) {
|
||||
|
Reference in New Issue
Block a user