Quote:
Originally Posted by DoctorOhh
Since 10s of thousands (a complete SWAG) of folks use calibre with PRS-T2 devices I'll be interested in to see what you find.
|
I have already find something with is not correct in this function:
- The cleanup function delete some database entries
- If one of the deletion fails then an exception occurs
So it is possible that books.db get partially cleanup when a failure occurs.
This is not really good: it would be better to do backup of books.db before the cleanup and revert to the backup once the operation fails.
I'm also not sure if the failure is not a temporary failure: books.db is generated in background by the device. So it is possible that I access to it while it is not completely generated. But it is wrong to alter it if we cannot process it. (and so made it corrupt for the device)