From cbffbd902561d88d6f42c734840f36f2e291e363 Mon Sep 17 00:00:00 2001 From: chrislu Date: Sat, 15 Jan 2022 15:06:36 -0800 Subject: [PATCH] fix --- weed/filesys/page_writer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weed/filesys/page_writer.go b/weed/filesys/page_writer.go index 55ed25f96..df3d16116 100644 --- a/weed/filesys/page_writer.go +++ b/weed/filesys/page_writer.go @@ -84,7 +84,7 @@ func (pw *PageWriter) ReadDirtyDataAt(data []byte, offset int64) (maxStop int64) maxStop = max(maxStop, m2) offset += readSize - data = dataSlice[readSize:] + dataSlice = dataSlice[readSize:] } page_writer.CheckByteZero(fmt.Sprintf("page writer read [%d,%d)", offset, offset+int64(len(data))), data, 0, maxStop-offset)