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 | 4697704570a2dde0c09bebb0aeeae1f8cabd2f3f (patch) | |
| tree | d6f93c5e88eccba85dbef68f31f5154ee60ab4a5 | |
| parent | d7161c1101547cfeeebc03d9487e6e1c1f818009 (diff) | |
| download | rabbitmq-server-git-4697704570a2dde0c09bebb0aeeae1f8cabd2f3f.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 859759acba..901155a8ee 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]). |
