From a2946ea14bbe097e23ae51661c54552b373a5907 Mon Sep 17 00:00:00 2001 From: Dave Collins Date: Fri, 13 Sep 2013 17:31:00 -0500 Subject: [PATCH] Don't add "btcd.ldb" directory to provided path. --- ldb/leveldb.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/ldb/leveldb.go b/ldb/leveldb.go index 7713c5ce..683ca6cc 100644 --- a/ldb/leveldb.go +++ b/ldb/leveldb.go @@ -13,7 +13,6 @@ import ( "github.com/syndtr/goleveldb/leveldb" "github.com/syndtr/goleveldb/leveldb/opt" "os" - "path/filepath" "runtime" "sync" ) @@ -156,8 +155,7 @@ func openDB(dbpath string, flag opt.OptionsFlag) (pbdb btcdb.Db, err error) { } } - lDbName := filepath.Join(dbpath, "btcd.ldb") - tlDb, err = leveldb.OpenFile(lDbName, &opt.Options{Flag: flag}) + tlDb, err = leveldb.OpenFile(dbpath, &opt.Options{Flag: flag}) if err != nil { return }