summaryrefslogtreecommitdiff
path: root/sql/ha_innodb.h
diff options
context:
space:
mode:
authorunknown <jan@hundin.mysql.fi>2004-11-30 12:11:02 +0200
committerunknown <jan@hundin.mysql.fi>2004-11-30 12:11:02 +0200
commit739b630ed7c1a832ff4e8075cd8739c93286e61f (patch)
tree84e8ec4376e25d1f3cb8c8ba19936ac217f93266 /sql/ha_innodb.h
parent857bd559ec956c4be44422f3f185d310029fb765 (diff)
parentdf0e057a52db9f085c42ec593f3000da4afdbbd7 (diff)
downloadmariadb-git-739b630ed7c1a832ff4e8075cd8739c93286e61f.tar.gz
Auto merged.
innobase/row/row0ins.c: Auto merged innobase/trx/trx0undo.c: Auto merged sql/ha_innodb.h: Auto merged sql/handler.h: Auto merged
Diffstat (limited to 'sql/ha_innodb.h')
-rw-r--r--sql/ha_innodb.h43
1 files changed, 43 insertions, 0 deletions
diff --git a/sql/ha_innodb.h b/sql/ha_innodb.h
index 7bdd3208df3..a64bbc665c1 100644
--- a/sql/ha_innodb.h
+++ b/sql/ha_innodb.h
@@ -245,3 +245,46 @@ void innobase_release_temporary_latches(void* innobase_tid);
void innobase_store_binlog_offset_and_flush_log(char *binlog_name,longlong offset);
int innobase_start_trx_and_assign_read_view(THD* thd);
+
+/***********************************************************************
+This function is used to prepare X/Open XA distributed transaction */
+
+int innobase_xa_prepare(
+/*====================*/
+ /* out: 0 or error number */
+ THD* thd, /* in: handle to the MySQL thread of the user
+ whose XA transaction should be prepared */
+ bool all); /* in: TRUE - commit transaction
+ FALSE - the current SQL statement ended */
+
+/***********************************************************************
+This function is used to recover X/Open XA distributed transactions */
+
+int innobase_xa_recover(
+/*====================*/
+ /* out: number of prepared transactions
+ stored in xid_list */
+ XID* xid_list, /* in/out: prepared transactions */
+ uint len); /* in: number of slots in xid_list */
+
+/***********************************************************************
+This function is used to commit one X/Open XA distributed transaction
+which is in the prepared state */
+
+int innobase_commit_by_xid(
+/*=======================*/
+ /* out: 0 or error number */
+ XID* xid); /* in : X/Open XA Transaction Identification */
+
+/***********************************************************************
+This function is used to rollback one X/Open XA distributed transaction
+which is in the prepared state */
+
+int innobase_rollback_by_xid(
+ /* out: 0 or error number */
+ XID *xid); /* in : X/Open XA Transaction Idenfification */
+
+
+int innobase_xa_end(THD *thd);
+
+