From b964bbab3db8f160fe3aa240a808d92aa5f80078 Mon Sep 17 00:00:00 2001 From: Chris Lu Date: Tue, 17 Mar 2020 10:01:24 -0700 Subject: [PATCH] fix compilation --- weed/storage/store.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weed/storage/store.go b/weed/storage/store.go index f0dbbdf18..76fe4de27 100644 --- a/weed/storage/store.go +++ b/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 }