forked from mirror/ledisdb
parent
2cc4a7056b
commit
b5400e8056
|
@ -9,7 +9,7 @@ import (
|
|||
"path"
|
||||
)
|
||||
|
||||
var fileName = flag.String("config", "/etc/ledis.config", "ledisdb config file")
|
||||
var fileName = flag.String("config", "/etc/ledis.json", "ledisdb config file")
|
||||
|
||||
func main() {
|
||||
flag.Parse()
|
||||
|
|
|
@ -88,8 +88,7 @@ func Repair(cfg *Config) error {
|
|||
db.cfg = cfg
|
||||
|
||||
err := db.open()
|
||||
|
||||
db.Close()
|
||||
defer db.Close()
|
||||
|
||||
//open ok, do not need repair
|
||||
if err == nil {
|
||||
|
|
Loading…
Reference in New Issue