mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
mount: fix
fix bug found by git bisect, but I do not understand why it can cause error!
This commit is contained in:
parent
1c2e920fa2
commit
94e35cdb35
|
@ -90,9 +90,7 @@ func (c *ChunkCache) SetChunk(fileId string, data []byte) {
|
||||||
c.Lock()
|
c.Lock()
|
||||||
defer c.Unlock()
|
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) {
|
func (c *ChunkCache) doSetChunk(fileId string, data []byte) {
|
||||||
|
|
Loading…
Reference in a new issue