mirror of
https://github.com/ergochat/ergo.git
synced 2024-12-22 18:52:41 +01: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:
parent
9293858ba1
commit
98e87f6cc0
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user