tpc_recover()

Overview

Returns a list of pending two-phase-commit transaction IDs for the current connection.

See also: MariaDB Connector/Python 1.1 and in 1.0

EXAMPLES

Given a database connection in conn1, the following will recover any outstanding two-phase-commit transaction IDs associated with the connection and roll them back:

for xid in conn1.tpc_recover():
    conn1.tpc_rollback(xid)

CHANGE HISTORY

Release Series

History

1.1

  • Present starting in MariaDB Connector/Python 1.1.0rc1.

1.0

  • Present starting in MariaDB Connector/Python 1.0.0.