ensure releasing file handle

This commit is contained in:
chrislu
2022-03-07 14:01:24 -08:00
parent 8136384473
commit 3aeee3d748
3 changed files with 9 additions and 0 deletions

View File

@@ -179,4 +179,7 @@ func (up *UploadPipeline) moveToSealed(memChunk PageChunk, logicChunkIndex Logic
}
func (up *UploadPipeline) Shutdown() {
for logicChunkIndex, sealedChunk := range up.sealedChunks {
sealedChunk.FreeReference(fmt.Sprintf("%s uploadpipeline shutdown chunk %d", up.filepath, logicChunkIndex))
}
}