From 928d29af9ec56a7ddbc574d7127814433140b5f9 Mon Sep 17 00:00:00 2001 From: chrislu Date: Sun, 7 Aug 2022 10:13:04 -0700 Subject: [PATCH] fix wrong logic about reader isRandomMode() --- weed/filer/reader_pattern.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weed/filer/reader_pattern.go b/weed/filer/reader_pattern.go index ec73c59a2..38a51d788 100644 --- a/weed/filer/reader_pattern.go +++ b/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 }