mirror of
https://github.com/jeremyd/ergo.git
synced 2026-04-28 16:40:00 -07:00
explicitly close the DB during importdb
There is no change in behavior since committing the transaction already write(2)'s all the data to disk. But let's comply with the official buntdb API.
This commit is contained in:
@@ -242,5 +242,7 @@ func ImportDB(config *Config, infile string) (err error) {
|
||||
return doImportDB(config, dbImport, tx)
|
||||
}
|
||||
|
||||
return db.Update(performImport)
|
||||
err = db.Update(performImport)
|
||||
db.Close()
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user