mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-09-20 17:04:03 +08:00
bug: cleanup function was called twice
This commit is contained in:
@@ -91,7 +91,6 @@ func (pages *StreamDirtyPages) saveChunkedFileIntevalToStorage(reader io.Reader,
|
|||||||
glog.V(3).Infof("%s saveToStorage %s [%d,%d)", pages.f.fullpath(), chunk.FileId, offset, offset+size)
|
glog.V(3).Infof("%s saveToStorage %s [%d,%d)", pages.f.fullpath(), chunk.FileId, offset, offset+size)
|
||||||
pages.chunkAddLock.Unlock()
|
pages.chunkAddLock.Unlock()
|
||||||
|
|
||||||
cleanupFn()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if pages.f.wfs.concurrentWriters != nil {
|
if pages.f.wfs.concurrentWriters != nil {
|
||||||
|
Reference in New Issue
Block a user