commitOnePhase method
1RM optimisation: fuse prepare → commit on an Active branch.
Only safe when this RM is the sole participant in the global
transaction.
Implementation
bool commitOnePhase() {
final rc = _conn.native.xaCommitOnePhase(xaId);
if (rc == 0) {
_state = XaState.committed;
return true;
}
_state = XaState.failed;
return false;
}