aboutsummaryrefslogtreecommitdiff
path: root/go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2013-07-19 19:37:10 -0700
committerChris Lu <chris.lu@gmail.com>2013-07-19 19:37:10 -0700
commitff1c04c4860e263c53ae62e7c08146c272e3f1c8 (patch)
tree55f1905c89f6e179e078b6c9c03882688609479f /go
parentdd2245956f91d3d704766f9d44b988b6ac30d345 (diff)
downloadseaweedfs-ff1c04c4860e263c53ae62e7c08146c272e3f1c8.tar.xz
seaweedfs-ff1c04c4860e263c53ae62e7c08146c272e3f1c8.zip
fix issue 34
Diffstat (limited to 'go')
-rw-r--r--go/storage/store.go3
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 {