Explorar el Código

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 hace 2 años
padre
commit
98e87f6cc0
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  1. 3
    1
      irc/import.go

+ 3
- 1
irc/import.go Ver fichero

@@ -242,5 +242,7 @@ func ImportDB(config *Config, infile string) (err error) {
242 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…
Cancelar
Guardar