Browse Source

fix

avoid_releasing_temp_file_on_write
chrislu 3 years ago
parent
commit
cbffbd9025
  1. 2
      weed/filesys/page_writer.go

2
weed/filesys/page_writer.go

@ -84,7 +84,7 @@ func (pw *PageWriter) ReadDirtyDataAt(data []byte, offset int64) (maxStop int64)
maxStop = max(maxStop, m2) maxStop = max(maxStop, m2)
offset += readSize 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) page_writer.CheckByteZero(fmt.Sprintf("page writer read [%d,%d)", offset, offset+int64(len(data))), data, 0, maxStop-offset)

Loading…
Cancel
Save