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.
|