Messages in this thread | | | Date | Fri, 27 May 2011 10:51:08 -0700 (PDT) | From | david@lang ... | Subject | Re: [rfc] Ignore Fsync Calls in Laptop_Mode |
| |
On Fri, 27 May 2011, Theodore Tso wrote:
> If you are willing to rewrite the *entire* database to a completely new file each > time you want to write out some data, and only delete the old database > once the new database has been written out, then you're fine. If the file is too > big you can delay the time period between a complete writeout of the > database. But then if you drop your laptop and the battery slips out, you'll > lose more data. Life is full of tradeoffs.
actually, even in this case don't you need a barrier or fsync to make sure the new file is completely written before the old file goes away?
David Lang
| |