View Single Post
Old 09-20-2013, 04:45 AM   #5
tetanos
Junior Member
tetanos began at the beginning.
 
Posts: 7
Karma: 10
Join Date: Apr 2013
Device: PTS-T2
Quote:
Originally Posted by DoctorOhh View Post
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:
  1. The cleanup function delete some database entries
  2. 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)
tetanos is offline   Reply With Quote