View Single Post
Old 10-12-2017, 09:27 AM   #513
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,906
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by compurandom View Post
I forgot about that -- it is possible for the in-memory copy of the database to be corrupt but the on disk version to be OK. In that case, restarting fixes it. I had that happen once.
Usually it is the other way round. The file is corrupt and changes can't be save. When it is reread during a restart, older and probably inconsistent data is read.
Quote:
If restarting doesn't fix it, then a wrong count is a sign of something deeper wrong in the database. Repairing indexes might fix it. If it doesn't, then short of a program to verify the semantics of the database vs. the the books on the device and all the books, not just the ones calibre knows about, you're going to have more problems later that are just easier to fix by rebuilding the database from scratch.
Repairing the indexes is unlikely to fix it. There isn't an index that could be causing this.

But yes, the sooner it is fixed the better. And if isn't, it will probably get worse and if the firmware can't read it at all, it will reset the database and prompt to be setup.
davidfor is offline   Reply With Quote