Permalink
Fetching contributors…
Cannot retrieve contributors at this time
22 lines (20 sloc) 511 Bytes
RULE Fail first phase2Commit
CLASS com.arjuna.ats.arjuna.coordinator.BasicAction
METHOD doCommit
AT ENTRY
BIND NOTHING
IF readCounter("phase2commit") == 0
DO debug("Called"),
incrementCounter("phase2commit");
com.arjuna.ats.arjuna.coordinator.ActionManager.manager().remove($0.get_uid());
throw new Error();
ENDRULE
RULE Return not inflight
CLASS com.arjuna.ats.internal.arjuna.recovery.AtomicActionRecoveryModule
METHOD isTransactionInMidFlight
AT ENTRY
BIND NOTHING
IF TRUE
DO
RETURN false
ENDRULE