Ensure boltDB pathname is constructed uniformly

Keep the concatenation of the prefix and filename inside the boltdb
package, so we can't get it wrong outside.
This commit is contained in:
Bryan Boreham committed 2017-04-11 15:45:04 +00:00
1 parent bc47866880
commit 5f6c5f6692
3 files changed
+14 -9

No files matched your search

+1 -1
View File
@@ -260,7 +260,7 @@ func main() {
Log.Fatalf("--awsvpc mode is not compatible with the --password option")
}
db, err := db.NewBoltDB(dbPrefix + db.FileName)
db, err := db.NewBoltDB(dbPrefix)
checkFatal(err)
defer db.Close()