Przeglądaj źródła

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 lat temu
rodzic
commit
98e87f6cc0
1 zmienionych plików z 3 dodań i 1 usunięć
  1. 3
    1
      irc/import.go

+ 3
- 1
irc/import.go Wyświetl plik

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

Ładowanie…
Anuluj
Zapisz