I've been looking into possibilities of solving the problem that we delete the cache in case of crash. I'd rather discuss the topic here than bloating bug #105843 even more...

As far as I can see, the best solution with the current code would be to add a journal file that would keep a track of all dirty blocks, separate files and cache map entries that need to be deleted if a crash occurs. From time to time we would sync block files and map file to disk and the journal file would be cleaned up at this point. The problem is that we would need to sync the journal file after every change and regarding the comment #3 in bug #681085 I'm not sure that this is acceptable.

Any thoughts on this?

Michal
_______________________________________________
dev-tech-network mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-network

Reply via email to