From 74052064b6ebfe5f0508914d0c74627734548c3e Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Sun, 9 May 2021 17:25:42 -0700 Subject: [PATCH] add one missing optimization --- weed/filesys/dirty_page_interval.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/weed/filesys/dirty_page_interval.go b/weed/filesys/dirty_page_interval.go index 1404bf78c..304793340 100644 --- a/weed/filesys/dirty_page_interval.go +++ b/weed/filesys/dirty_page_interval.go @@ -1,7 +1,6 @@ package filesys import ( - "bytes" "io" "github.com/chrislusf/seaweedfs/weed/util" @@ -214,7 +213,7 @@ func (l *IntervalLinkedList) ToReader() io.Reader { readers = append(readers, util.NewBytesReader(t.Data)) for t.Next != nil { t = t.Next - readers = append(readers, bytes.NewReader(t.Data)) + readers = append(readers, util.NewBytesReader(t.Data)) } if len(readers) == 1 { return readers[0]