diff options
author | unknown <heikki@hundin.mysql.fi> | 2002-08-12 00:17:39 +0300 |
---|---|---|
committer | unknown <heikki@hundin.mysql.fi> | 2002-08-12 00:17:39 +0300 |
commit | 7ad3d0d2ae7c755230d215ab17a3c142c3af39b4 (patch) | |
tree | dbf522f81c30ed0ab41884fa35b7cee0a2e72fd3 /innobase | |
parent | 12c89220373834983e236d0e49c4ab39c9ba5c9f (diff) | |
download | mariadb-git-7ad3d0d2ae7c755230d215ab17a3c142c3af39b4.tar.gz |
trx0trx.h, trx0trx.c, ha_innobase.cc, ha_innobase.h:
Add tentative code which can be used in HANDLER implementation for InnoDB
sql/ha_innobase.h:
Add tentative code which can be used in HANDLER implementation for InnoDB
sql/ha_innobase.cc:
Add tentative code which can be used in HANDLER implementation for InnoDB
innobase/trx/trx0trx.c:
Add tentative code which can be used in HANDLER implementation for InnoDB
innobase/include/trx0trx.h:
Add tentative code which can be used in HANDLER implementation for InnoDB
Diffstat (limited to 'innobase')
-rw-r--r-- | innobase/include/trx0trx.h | 7 | ||||
-rw-r--r-- | innobase/trx/trx0trx.c | 11 |
2 files changed, 18 insertions, 0 deletions
diff --git a/innobase/include/trx0trx.h b/innobase/include/trx0trx.h index 84d85fcaff6..e1f65e9da0f 100644 --- a/innobase/include/trx0trx.h +++ b/innobase/include/trx0trx.h @@ -117,6 +117,13 @@ void trx_start_if_not_started( /*=====================*/ trx_t* trx); /* in: transaction */ +/***************************************************************** +Starts the transaction if it is not yet started. */ + +void +trx_start_if_not_started_noninline( +/*===============================*/ + trx_t* trx); /* in: transaction */ /******************************************************************** Commits a transaction. */ diff --git a/innobase/trx/trx0trx.c b/innobase/trx/trx0trx.c index 94a11042de5..b8cf7ad4a6d 100644 --- a/innobase/trx/trx0trx.c +++ b/innobase/trx/trx0trx.c @@ -39,6 +39,17 @@ sess_t* trx_dummy_sess = NULL; the kernel mutex */ ulint trx_n_mysql_transactions = 0; +/***************************************************************** +Starts the transaction if it is not yet started. */ + +void +trx_start_if_not_started_noninline( +/*===============================*/ + trx_t* trx) /* in: transaction */ +{ + trx_start_if_not_started(trx); +} + /******************************************************************** Retrieves the error_info field from a trx. */ |