|
@ -6,6 +6,7 @@ import ( |
|
|
"code.google.com/p/weed-fs/go/storage" |
|
|
"code.google.com/p/weed-fs/go/storage" |
|
|
"errors" |
|
|
"errors" |
|
|
"io/ioutil" |
|
|
"io/ioutil" |
|
|
|
|
|
"log" |
|
|
"math/rand" |
|
|
"math/rand" |
|
|
) |
|
|
) |
|
|
|
|
|
|
|
@ -54,8 +55,8 @@ func (t *Topology) loadConfiguration(configurationFile string) error { |
|
|
if e == nil { |
|
|
if e == nil { |
|
|
t.configuration, e = NewConfiguration(b) |
|
|
t.configuration, e = NewConfiguration(b) |
|
|
return e |
|
|
return e |
|
|
}else{ |
|
|
|
|
|
log.Println("Using default configurations.") |
|
|
|
|
|
|
|
|
} else { |
|
|
|
|
|
log.Println("Using default configurations.") |
|
|
} |
|
|
} |
|
|
return nil |
|
|
return nil |
|
|
} |
|
|
} |
|
|