Browse Source

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.
tags/v2.9.0-rc1
Shivaram Lingamneni 2 years ago
parent
commit
98e87f6cc0
1 changed files with 3 additions and 1 deletions
  1. 3
    1
      irc/import.go

+ 3
- 1
irc/import.go View File

242
 		return doImportDB(config, dbImport, tx)
242
 		return doImportDB(config, dbImport, tx)
243
 	}
243
 	}
244
 
244
 
245
-	return db.Update(performImport)
245
+	err = db.Update(performImport)
246
+	db.Close()
247
+	return
246
 }
248
 }

Loading…
Cancel
Save