Browse Source

minor

pull/4651/head
chrislu 1 year ago
parent
commit
14546f0ad8
  1. 4
      weed/storage/volume_backup.go

4
weed/storage/volume_backup.go

@ -255,7 +255,7 @@ func (v *Volume) readRightNs(m int64) (index int64, offset Offset, ts uint64, er
index++ index++
offset, err = v.readOffsetFromIndex(index) offset, err = v.readOffsetFromIndex(index)
if err != nil { if err != nil {
err = fmt.Errorf("read entry %d: %v", index, err)
err = fmt.Errorf("read left entry at %d: %v", index, err)
return return
} }
} }
@ -271,7 +271,7 @@ func (v *Volume) readLeftNs(m int64) (index int64, offset Offset, ts uint64, err
index-- index--
offset, err = v.readOffsetFromIndex(index) offset, err = v.readOffsetFromIndex(index)
if err != nil { if err != nil {
err = fmt.Errorf("read entry %d: %v", index, err)
err = fmt.Errorf("read right entry at %d: %v", index, err)
return return
} }
} }

Loading…
Cancel
Save