View Single Post
Old 08-25-2020, 02:41 PM   #272
JimmXinu
Plugin Developer
JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.
 
JimmXinu's Avatar
 
Posts: 7,005
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Does Calibre not flush the library DB to disk when changing libraries?

I was pretty sure it does, or at least did, but I don't have another explanation for something I saw the other date:

I do my plugin dev testing in the same Calibre install I use as my 'daily driver', but in a different library. Currently, that install is 64bit v4.99.12 on Win10. I run Calibre in debug mode from a command prompt with calibre-debug -g.

Using a test library, I was testing something in FFF that was generating too much network traffic and I wanted to kill it quick. I did Ctrl-C in the command prompt by ancient reflex.

The weird thing is that my main library--which I wasn't in at the time--was missing all the changes that I had made to it before running that test in the test library. Updates to columns for existing books where lost, a deleted book was back (but not the dirs and formats on disk), and new created books were in the library dir, but not the DB.
JimmXinu is offline