Commit 222249e6 authored by obscuren's avatar obscuren

cmd/geth: Flush instead of close. This solves a nil ptr error

parent b2f28060
......@@ -533,9 +533,9 @@ func importchain(ctx *cli.Context) {
}
// force database flush
ethereum.BlockDb().Close()
ethereum.StateDb().Close()
ethereum.ExtraDb().Close()
ethereum.BlockDb().Flush()
ethereum.StateDb().Flush()
ethereum.ExtraDb().Flush()
fmt.Printf("Import done in %v", time.Since(start))
......@@ -630,9 +630,9 @@ func upgradeDb(ctx *cli.Context) {
}
// force database flush
ethereum.BlockDb().Close()
ethereum.StateDb().Close()
ethereum.ExtraDb().Close()
ethereum.BlockDb().Flush()
ethereum.StateDb().Flush()
ethereum.ExtraDb().Flush()
os.Remove(exportFile)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment