mirror of
https://github.com/ergochat/ergo.git
synced 2024-11-15 00:19:29 +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