diff options
| author | Chris Lu <chris.lu@gmail.com> | 2013-07-19 19:37:10 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2013-07-19 19:37:10 -0700 |
| commit | ff1c04c4860e263c53ae62e7c08146c272e3f1c8 (patch) | |
| tree | 55f1905c89f6e179e078b6c9c03882688609479f | |
| parent | dd2245956f91d3d704766f9d44b988b6ac30d345 (diff) | |
| download | seaweedfs-ff1c04c4860e263c53ae62e7c08146c272e3f1c8.tar.xz seaweedfs-ff1c04c4860e263c53ae62e7c08146c272e3f1c8.zip | |
fix issue 34
| -rw-r--r-- | go/storage/store.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/go/storage/store.go b/go/storage/store.go index 0238bbbbd..fcb9ce41c 100644 --- a/go/storage/store.go +++ b/go/storage/store.go @@ -146,9 +146,8 @@ func (s *Store) FreezeVolume(volumeIdString string) error { return fmt.Errorf("Volume %s is already read-only", volumeIdString) } return v.freeze() - } else { - return fmt.Errorf("volume id %s is not found during freeze!", vid) } + return fmt.Errorf("volume id %s is not found during freeze!", vid) } func (l *DiskLocation) loadExistingVolumes() { if dirs, err := ioutil.ReadDir(l.directory); err == nil { |
