mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
remove duplicated logic of removing from writableChunks
This commit is contained in:
parent
4878e0fd46
commit
d1797deccb
|
@ -73,9 +73,7 @@ func (up *UploadPipeline) SaveDataAt(p []byte, off int64, isSequential bool) (n
|
||||||
fullness = chunkFullness
|
fullness = chunkFullness
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
fullWritableChunk := up.writableChunks[fullestChunkIndex]
|
up.moveToSealed(up.writableChunks[fullestChunkIndex], fullestChunkIndex)
|
||||||
delete(up.writableChunks, fullestChunkIndex)
|
|
||||||
up.moveToSealed(fullWritableChunk, fullestChunkIndex)
|
|
||||||
// fmt.Printf("flush chunk %d with %d bytes written\n", logicChunkIndex, fullness)
|
// fmt.Printf("flush chunk %d with %d bytes written\n", logicChunkIndex, fullness)
|
||||||
}
|
}
|
||||||
if isSequential &&
|
if isSequential &&
|
||||||
|
|
Loading…
Reference in a new issue