Browse Source

avoid file not exist error

pull/2/head
Chris Lu 12 years ago
parent
commit
018df9ceb0
  1. 3
      go/topology/topology.go

3
go/topology/topology.go

@ -53,9 +53,10 @@ func (t *Topology) loadConfiguration(configurationFile string) error {
b, e := ioutil.ReadFile(configurationFile) b, e := ioutil.ReadFile(configurationFile)
if e == nil { if e == nil {
t.configuration, e = NewConfiguration(b) t.configuration, e = NewConfiguration(b)
}
return e return e
} }
return nil
}
func (t *Topology) Lookup(vid storage.VolumeId) []*DataNode { func (t *Topology) Lookup(vid storage.VolumeId) []*DataNode {
for _, vl := range t.replicaType2VolumeLayout { for _, vl := range t.replicaType2VolumeLayout {

Loading…
Cancel
Save