~mysql/mysql-server/mysql-6.0

« back to all changes in this revision

Viewing changes to innobase/include/trx0trx.ic

  • Committer: monty at mysql
  • Date: 2001-02-17 12:19:19 UTC
  • mto: (554.1.1)
  • mto: This revision was merged to the branch mainline in revision 556.
  • Revision ID: sp1r-monty@donna.mysql.com-20010217121919-07904
Added Innobase to source distribution

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/******************************************************
 
2
The transaction
 
3
 
 
4
(c) 1996 Innobase Oy
 
5
 
 
6
Created 3/26/1996 Heikki Tuuri
 
7
*******************************************************/
 
8
 
 
9
/*****************************************************************
 
10
Starts the transaction if it is not yet started. */
 
11
UNIV_INLINE
 
12
void
 
13
trx_start_if_not_started(
 
14
/*=====================*/
 
15
        trx_t*  trx)    /* in: transaction */
 
16
{       
 
17
        ut_ad(trx->conc_state != TRX_COMMITTED_IN_MEMORY);
 
18
 
 
19
        if (trx->conc_state == TRX_NOT_STARTED) {
 
20
 
 
21
                trx_start(trx, ULINT_UNDEFINED);
 
22
        }
 
23
}