Michael Gordon wrote:
When is a new bookmark set in the data file?

If by data file you mean the Places database SQLite file, then AFAIK that will be a few moments (between milliseconds and seconds) after the bookmark has been created (or otherwise changed, this also applies to changes to existing bookmarks!), i.e. it's asynchronous.

Is it set the moment the user sets a web page as a bookmark?

AFAIK not the very moment; instead it's first written to memory (RAM), then after some time flushed to disk. If the flushing to disk fails, the change is lost. What the database ensures however is that the it stays consistent, i.e. you either have the state before the change or the state afterward, but never something else (provided the disk is OK of course).

Is it set when SM is closed?

Of course, if SM is closed, the file is also written to disk if previously accumulated changes have not been written to disk yet. It's only the bookmarks.html export file that is only written to disk upon exiting the application (if you tell it to do that via a pref).

If the bookmark is recorded in the data file the instant the user sets a
web page as a bookmark it won't matter what happens to SM a few moments
later, the bookmark will be set and recorded in the data file and ready
for instant use.

The system does not guarantee that any change you make stays persistent; I should have been clearer about that. Only changes that have been written to the database completely stay persistent. Those are safe then, though.

HTH

Jens

--
Jens Hatlak <http://jens.hatlak.de/>
SeaMonkey Trunk Tracker <http://smtt.blogspot.com/>
_______________________________________________
support-seamonkey mailing list
[email protected]
https://lists.mozilla.org/listinfo/support-seamonkey

Reply via email to