View Issue Details
|ID||Project||Category||View Status||Date Submitted||Last Update|
|0016096||MediaMonkey (current)||DB/FileMonitor||public||2019-11-07 00:07||2020-01-09 16:22|
|Priority||urgent||Severity||block||Reproducibility||unable to reproduce|
|Target Version||4.1.26||Fixed in Version||4.1.26|
|Summary||0016096: DB: DB initialization/Upgrade fail MM can't start|
|Description||If MM crashes during update/init of MM.DB that left library corrupted on next start MM should check DB integrity and delete/rename MM.DB to MM.DB.Corrupted in order to either create new MM.DB or try to reimport/upgrade backup DB created during init/upgrade process.|
|Tags||No tags attached.|
|Fixed in build||1896|
The problem is that "PRAGMA integrity_check;" on the user's database returns "OK" (ticket SSV-602-19043), but the database has only 97 KB, includes just one row in DBInfo table and Songs table has 10 entries where all values are NULL.
Nevertheless I will add checking of DBInfo table, it must always include 4 rows (consisting of version major, minor, release and database id).
If the check fails then the MM.DB will be renamed to MM.DB.corrupted and fresh MM.DB will be created.
||Added in 220.127.116.116 and merged to 18.104.22.1682|
Close after test in 1896