Browse Source

add file size

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

2
weed/filesys/page_writer.go

@ -88,7 +88,7 @@ func (pw *PageWriter) ReadDirtyDataAt(data []byte, offset int64) (maxStop int64)
data = data[readSize:]
}
page_writer.CheckByteZero(fmt.Sprintf("page writer read [%d,%d)", originalOffset, originalOffset+int64(len(originalData))), originalData, 0, maxStop-originalOffset)
page_writer.CheckByteZero(fmt.Sprintf("page writer read [%d,%d) of size %d", originalOffset, originalOffset+int64(len(originalData)), pw.f.entry.Attributes.FileSize), originalData, 0, maxStop-originalOffset)
return
}

Loading…
Cancel
Save