本地数据库升级之后增加日志

This commit is contained in:
刘祥超
2022-03-15 18:58:56 +08:00
parent 21e206061d
commit b9abc55728

View File

@@ -397,6 +397,7 @@ func (this *FileList) UpgradeV3(oldDir string, brokenOnError bool) error {
defer func() {
_ = os.Remove(indexDBPath)
remotelogs.Println("CACHE", "upgrading local database finished")
}()
db, err := sql.Open("sqlite3", "file:"+indexDBPath+"?cache=shared&mode=rwc&_journal_mode=WAL&_sync=OFF")