You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
346 B

3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
  1. package page_writer
  2. import "github.com/chrislusf/seaweedfs/weed/glog"
  3. func CheckByteZero(message string, p []byte, start, stop int64) {
  4. isAllZero := true
  5. for i := start; i < stop; i++ {
  6. if p[i] != 0 {
  7. isAllZero = false
  8. break
  9. }
  10. }
  11. if isAllZero && start != stop {
  12. glog.Errorf("%s is all zeros [%d,%d)", message, start, stop)
  13. }
  14. }