Browse Source

logs on non-zero data

avoid_releasing_temp_file_on_write
chrislu 3 years ago
parent
commit
aaba9ad659
  1. 6
      weed/filesys/page_writer/debug_content.go

6
weed/filesys/page_writer/debug_content.go

@ -10,8 +10,12 @@ func CheckByteZero(message string, p []byte, start, stop int64) {
break break
} }
} }
if isAllZero && start != stop {
if isAllZero {
if start != stop {
glog.Errorf("%s is all zeros [%d,%d)", message, start, stop) glog.Errorf("%s is all zeros [%d,%d)", message, start, stop)
} }
} else {
glog.V(4).Infof("%s read some non-zero data [%d,%d)", message, start, stop)
}
} }
Loading…
Cancel
Save