aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/geth
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-05-27 07:36:59 +0800
committerobscuren <geffobscura@gmail.com>2015-05-27 07:38:41 +0800
commit222249e622cd552b0500051fbbcbfb00a5366da4 (patch)
tree7dccb0359577de4b4daa0470c13e44a68b0859d5 /cmd/geth
parentb2f2806055c90f6956db6c89bfdc3df65b95d6b6 (diff)
downloaddexon-222249e622cd552b0500051fbbcbfb00a5366da4.tar
dexon-222249e622cd552b0500051fbbcbfb00a5366da4.tar.gz
dexon-222249e622cd552b0500051fbbcbfb00a5366da4.tar.bz2
dexon-222249e622cd552b0500051fbbcbfb00a5366da4.tar.lz
dexon-222249e622cd552b0500051fbbcbfb00a5366da4.tar.xz
dexon-222249e622cd552b0500051fbbcbfb00a5366da4.tar.zst
dexon-222249e622cd552b0500051fbbcbfb00a5366da4.zip
cmd/geth: Flush instead of close. This solves a nil ptr error
Diffstat (limited to 'cmd/geth')
-rw-r--r--cmd/geth/main.go12
1 files changed, 6 insertions, 6 deletions
diff --git a/cmd/geth/main.go b/cmd/geth/main.go
index 9d935efbd..742dae10f 100644
--- a/cmd/geth/main.go
+++ b/cmd/geth/main.go
@@ -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)