bug: cleanup function was called twice

This commit is contained in:
chrislu committed 2021-12-27 20:53:02 -08:00
1 parent 67b723f74e
commit 80db8b13d8
1 file changed
-1
-1
View File
@@ -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)
pages.chunkAddLock.Unlock()
cleanupFn()
}
if pages.f.wfs.concurrentWriters != nil {