mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2025-09-18 17:17:55 +08:00
remove duplicated logic of removing from writableChunks
This commit is contained in:
@@ -73,9 +73,7 @@ func (up *UploadPipeline) SaveDataAt(p []byte, off int64, isSequential bool) (n
|
||||
fullness = chunkFullness
|
||||
}
|
||||
}
|
||||
fullWritableChunk := up.writableChunks[fullestChunkIndex]
|
||||
delete(up.writableChunks, fullestChunkIndex)
|
||||
up.moveToSealed(fullWritableChunk, fullestChunkIndex)
|
||||
up.moveToSealed(up.writableChunks[fullestChunkIndex], fullestChunkIndex)
|
||||
// fmt.Printf("flush chunk %d with %d bytes written\n", logicChunkIndex, fullness)
|
||||
}
|
||||
if isSequential &&
|
||||
|
Reference in New Issue
Block a user