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:
1 parent
bc47866880
commit
5f6c5f6692
3 files changed
+14
-9
No files matched your search
+1
-1
@@ -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()
|
||||
|
||||
|
||||
Reference in new issue
Block a user