Procházet zdrojové kódy

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 před 2 roky
rodič
revize
98e87f6cc0
1 změnil soubory, kde provedl 3 přidání a 1 odebrání
  1. 3
    1
      irc/import.go

+ 3
- 1
irc/import.go Zobrazit soubor

@@ -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
 }

Načítá se…
Zrušit
Uložit