Browse Source

add one missing optimization

pull/2063/head
Chris Lu 4 years ago
parent
commit
74052064b6
  1. 3
      weed/filesys/dirty_page_interval.go

3
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]

Loading…
Cancel
Save