I have a question that may seem somewhat obscure, but what I really
want to know is how the disk flushing and crash safety work.

Do tablespace commits get explicitly flushed during normal runtime operation?

If we have a write that successfully commits to the redo log and to
the binlog, but the tablespace loses, say, 5 seconds worth of commits
in an unclean shutdown, would crash recovery deal with it? Is
replaying the redo log followed by binlog based recovery sufficient to
put the tablespace(s) into a consistent state even if the redo+binary
logs are in terms of on-disk state a few seconds ahead of the
tablespaces?

On other words, provided that write ordering is preserved (ordering as
guided by flush calls), can I do the equivalent of
LD_PRELOAD=libeatmydata on the tablespace operations safely as long as
the redo and binary logs are fsync()-ed reliably?
_______________________________________________
discuss mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to