1
0
Fork 0
mirror of https://github.com/chrislusf/seaweedfs synced 2024-05-04 10:31:06 +02:00

logs on non-zero data

This commit is contained in:
chrislu 2022-01-15 23:26:33 -08:00
parent eb058e931a
commit aaba9ad659

View file

@ -10,8 +10,12 @@ func CheckByteZero(message string, p []byte, start, stop int64) {
break
}
}
if isAllZero && start != stop {
glog.Errorf("%s is all zeros [%d,%d)", message, start, stop)
if isAllZero {
if 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)
}
}