commitOnePhase method

bool commitOnePhase()

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 = _backend.xaCommitOnePhase(xaId);
  if (rc == 0) {
    _state = XaState.committed;
    return true;
  }
  _state = XaState.failed;
  return false;
}