diff options
author | unknown <heikki@hundin.mysql.fi> | 2002-09-20 05:18:55 +0300 |
---|---|---|
committer | unknown <heikki@hundin.mysql.fi> | 2002-09-20 05:18:55 +0300 |
commit | ce62618ca739649bbe06eec57729e4d860617274 (patch) | |
tree | 653417929e31dd5e0ef2950808dea74312259f7b /innobase/include/trx0trx.ic | |
parent | b8cfcf768ef493218b3917caf179c90c00632452 (diff) | |
download | mariadb-git-ce62618ca739649bbe06eec57729e4d860617274.tar.gz |
trx0trx.ic, trx0trx.h, srv0srv.h, row0sel.h, dict0mem.h:
Modifications for query cache + trxs, fix of q.c.+ foreign keys
innobase/include/dict0mem.h:
Modifications for query cache + trxs, fix of q.c.+ foreign keys
innobase/include/row0sel.h:
Modifications for query cache + trxs, fix of q.c.+ foreign keys
innobase/include/srv0srv.h:
Modifications for query cache + trxs, fix of q.c.+ foreign keys
innobase/include/trx0trx.h:
Modifications for query cache + trxs, fix of q.c.+ foreign keys
innobase/include/trx0trx.ic:
Modifications for query cache + trxs, fix of q.c.+ foreign keys
Diffstat (limited to 'innobase/include/trx0trx.ic')
-rw-r--r-- | innobase/include/trx0trx.ic | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/innobase/include/trx0trx.ic b/innobase/include/trx0trx.ic index 9d453047600..78e5acda148 100644 --- a/innobase/include/trx0trx.ic +++ b/innobase/include/trx0trx.ic @@ -21,3 +21,22 @@ trx_start_if_not_started( trx_start(trx, ULINT_UNDEFINED); } } + +/***************************************************************** +Starts the transaction if it is not yet started. Assumes we have reserved +the kernel mutex! */ +UNIV_INLINE +void +trx_start_if_not_started_low( +/*=========================*/ + trx_t* trx) /* in: transaction */ +{ + ut_ad(trx->conc_state != TRX_COMMITTED_IN_MEMORY); + + if (trx->conc_state == TRX_NOT_STARTED) { + + trx_start_low(trx, ULINT_UNDEFINED); + } +} + + |