mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
18 lines
329 B
Go
18 lines
329 B
Go
package page_writer
|
|
|
|
import "github.com/chrislusf/seaweedfs/weed/glog"
|
|
|
|
func CheckByteZero(message string, p []byte, start, stop int64) {
|
|
isAllZero := true
|
|
for i := start; i < stop; i++ {
|
|
if p[i] != 0 {
|
|
isAllZero = false
|
|
break
|
|
}
|
|
}
|
|
if isAllZero {
|
|
glog.Errorf("%s is all zeros [%d,%d)", message, start, stop)
|
|
}
|
|
|
|
}
|