From 520591e6ea825fcf33bb3dcfe40d0d1daf312389 Mon Sep 17 00:00:00 2001 From: chrislu Date: Sun, 23 Jan 2022 18:30:53 -0800 Subject: [PATCH] reset swap file chunk after uploading --- weed/filesys/page_writer/page_chunk_swapfile.go | 1 + 1 file changed, 1 insertion(+) diff --git a/weed/filesys/page_writer/page_chunk_swapfile.go b/weed/filesys/page_writer/page_chunk_swapfile.go index c4bd801cc..44ad64297 100644 --- a/weed/filesys/page_writer/page_chunk_swapfile.go +++ b/weed/filesys/page_writer/page_chunk_swapfile.go @@ -113,4 +113,5 @@ func (sc *SwapFileChunk) SaveContent(saveFn SaveToStorageFunc) { }) mem.Free(data) } + sc.usage = newChunkWrittenIntervalList() }