On 25 Oct 2012, at 2:04am, da...@lang.hm wrote:

> But unless you are a filesystem, how can you make sure that the message data 
> is written to file1 before you write the metadata about the message to file2?

Wait for long enough for the disk subsystem to clear its backlog of write 
commands.  A few seconds should do it.

> right now it seems that there is no way for an application to do this other 
> than doing a fsync(file1) before writing the metadata to file2

No, as I've posted previously to this thread, you can assume that fsync() 
literally does nothing.  It really is implemented as a 'noop' in many cases.

Simon.
_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to