diff options
author | Emile Joubert <emile@rabbitmq.com> | 2012-01-19 11:04:27 +0000 |
---|---|---|
committer | Emile Joubert <emile@rabbitmq.com> | 2012-01-19 11:04:27 +0000 |
commit | 26dbbfe31f8196692fb61e2403dd550555305419 (patch) | |
tree | d6f93c5e88eccba85dbef68f31f5154ee60ab4a5 | |
parent | 77bbba4b0ba6fe94df100c55aeb723c397504f36 (diff) | |
download | rabbitmq-server-26dbbfe31f8196692fb61e2403dd550555305419.tar.gz |
Brief explanation justifying the existence of mnesia_sync
-rw-r--r-- | src/mnesia_sync.erl | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mnesia_sync.erl b/src/mnesia_sync.erl index 859759ac..901155a8 100644 --- a/src/mnesia_sync.erl +++ b/src/mnesia_sync.erl @@ -16,6 +16,11 @@ -module(mnesia_sync). +%% mnesia:sync_transaction/3 fails to guarantee that the log is flushed to disk +%% at commit. This module is an attempt to minimise the risk of data loss by +%% performing a coalesced log fsync, regardless of whether or not the log was +%% appended to. + -behaviour(gen_server). -export([sync/0]). |