aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2013-03-19 10:33:33 -0700
committerChris Lu <chris.lu@gmail.com>2013-03-19 10:33:33 -0700
commit018df9ceb04ebc96296885152cf05808ee74af5a (patch)
tree5a99c7d156e429f11cd22d8553854cea847fd1f9
parenta3eddde5259298609450a8923c5e725cc8e06e45 (diff)
downloadseaweedfs-018df9ceb04ebc96296885152cf05808ee74af5a.tar.xz
seaweedfs-018df9ceb04ebc96296885152cf05808ee74af5a.zip
avoid file not exist error
-rw-r--r--go/topology/topology.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/go/topology/topology.go b/go/topology/topology.go
index 74dc1cd09..6f18a73ee 100644
--- a/go/topology/topology.go
+++ b/go/topology/topology.go
@@ -53,8 +53,9 @@ func (t *Topology) loadConfiguration(configurationFile string) error {
b, e := ioutil.ReadFile(configurationFile)
if e == nil {
t.configuration, e = NewConfiguration(b)
+ return e
}
- return e
+ return nil
}
func (t *Topology) Lookup(vid storage.VolumeId) []*DataNode {