diff options
| author | Chris Lu <chris.lu@gmail.com> | 2020-03-17 10:01:24 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2020-03-17 10:01:24 -0700 |
| commit | b964bbab3db8f160fe3aa240a808d92aa5f80078 (patch) | |
| tree | a85033b03f5f8e17ade40cc2a649f84d0bd0df6a | |
| parent | c3cb6fa1d75916dc463c258ccdd91ba7a0dbd5da (diff) | |
| download | seaweedfs-b964bbab3db8f160fe3aa240a808d92aa5f80078.tar.xz seaweedfs-b964bbab3db8f160fe3aa240a808d92aa5f80078.zip | |
fix compilation
| -rw-r--r-- | weed/storage/store.go | 2 |
1 files changed, 1 insertions, 1 deletions
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 } |
