Просмотр исходного кода

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 лет назад
Родитель
Сommit
98e87f6cc0
1 измененных файлов: 3 добавлений и 1 удалений
  1. 3
    1
      irc/import.go

+ 3
- 1
irc/import.go Просмотреть файл

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

Загрузка…
Отмена
Сохранить