From 26dbbfe31f8196692fb61e2403dd550555305419 Mon Sep 17 00:00:00 2001 From: Emile Joubert Date: Thu, 19 Jan 2012 11:04:27 +0000 Subject: Brief explanation justifying the existence of mnesia_sync --- src/mnesia_sync.erl | 5 +++++ 1 file changed, 5 insertions(+) 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]). -- cgit v1.2.1