Skip to content

Latest commit

 

History

History
125 lines (39 loc) · 2.21 KB

unsplit.md

File metadata and controls

125 lines (39 loc) · 2.21 KB

Module unsplit

Module unsplit

Framework for merging mnesia tables after netsplit.

Behaviours: application, supervisor.

Authors: : Ulf Wiger (ulf.wiger@erlang-solutions.com).

...

get_reporter/0Look up the predefined callback module for reporting inconsistencies.
report_inconsistency/4Report an inconcistency to the predefined reporter.
report_inconsistency/5Report an inconsistency to Reporter (an unsplit_reporter behaviour).
start/2Application start callback.
stop/1Application stop callback.

get_reporter/0

get_reporter() -> module()



Look up the predefined callback module for reporting inconsistencies

report_inconsistency/4

report_inconsistency(Tab::Table, Key, ObjA::ObjectA, ObjB::ObjectB) -> ok



Report an inconcistency to the predefined reporter

report_inconsistency/5

report_inconsistency(Reporter, Tab::Table, Key, ObjA::ObjectA, ObjB::ObjectB) -> ok



Report an inconsistency to Reporter (an unsplit_reporter behaviour)

start/2

start(X1::Type, X2::Arg) -> {ok, pid()}



Application start callback

stop/1

stop(X1::State) -> ok



Application stop callback