Browse Source

fix compilation

pull/1255/head
Chris Lu 5 years ago
parent
commit
b964bbab3d
  1. 2
      weed/storage/store.go

2
weed/storage/store.go

@ -229,7 +229,7 @@ func (s *Store) Close() {
func (s *Store) WriteVolumeNeedle(i needle.VolumeId, n *needle.Needle) (isUnchanged bool, err error) {
if v := s.findVolume(i); v != nil {
if v.v.IsReadOnly() {
if v.IsReadOnly() {
err = fmt.Errorf("volume %d is read only", i)
return
}

Loading…
Cancel
Save