diff options
| author | Chris Lu <chris.lu@gmail.com> | 2013-03-19 10:33:33 -0700 |
|---|---|---|
| committer | Chris Lu <chris.lu@gmail.com> | 2013-03-19 10:33:33 -0700 |
| commit | 018df9ceb04ebc96296885152cf05808ee74af5a (patch) | |
| tree | 5a99c7d156e429f11cd22d8553854cea847fd1f9 /go | |
| parent | a3eddde5259298609450a8923c5e725cc8e06e45 (diff) | |
| download | seaweedfs-018df9ceb04ebc96296885152cf05808ee74af5a.tar.xz seaweedfs-018df9ceb04ebc96296885152cf05808ee74af5a.zip | |
avoid file not exist error
Diffstat (limited to 'go')
| -rw-r--r-- | go/topology/topology.go | 3 |
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 { |
