Browse Source

fix wrong logic about reader isRandomMode()

pull/3415/head
chrislu 2 years ago
parent
commit
928d29af9e
  1. 2
      weed/filer/reader_pattern.go

2
weed/filer/reader_pattern.go

@ -25,5 +25,5 @@ func (rp *ReaderPattern) MonitorReadAt(offset int64, size int) {
}
func (rp *ReaderPattern) IsRandomMode() bool {
return rp.isSequentialCounter >= 0
return rp.isSequentialCounter < 0
}
Loading…
Cancel
Save