Browse Source

mount: fix

fix bug found by git bisect, but I do not understand why it can cause error!
pull/1273/head
Chris Lu 5 years ago
parent
commit
94e35cdb35
  1. 4
      weed/util/chunk_cache/chunk_cache.go

4
weed/util/chunk_cache/chunk_cache.go

@ -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) {

Loading…
Cancel
Save