From 222249e622cd552b0500051fbbcbfb00a5366da4 Mon Sep 17 00:00:00 2001 From: obscuren Date: Wed, 27 May 2015 01:36:59 +0200 Subject: cmd/geth: Flush instead of close. This solves a nil ptr error --- cmd/geth/main.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'cmd') 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) -- cgit