~ubuntu-branches/ubuntu/maverick/mysql-5.1/maverick-proposed

« back to all changes in this revision

Viewing changes to storage/innobase/include/trx0sys.ic

  • Committer: Package Import Robot
  • Author(s): Marc Deslauriers
  • Date: 2012-02-22 14:16:05 UTC
  • mto: This revision was merged to the branch mainline in revision 20.
  • Revision ID: package-import@ubuntu.com-20120222141605-nxlu9yzc6attylc2
Tags: upstream-5.1.61
ImportĀ upstreamĀ versionĀ 5.1.61

Show diffs side-by-side

added added

removed removed

Lines of Context:
257
257
        return(NULL);
258
258
}
259
259
 
 
260
#if defined UNIV_DEBUG || defined UNIV_BLOB_LIGHT_DEBUG
 
261
/********************************************************
 
262
Assert that a transaction is active. */
 
263
UNIV_INLINE
 
264
ibool
 
265
trx_assert_active(
 
266
/*==============*/
 
267
                                /* out: TRUE */
 
268
        dulint  trx_id)         /* in: transaction identifier */
 
269
{
 
270
        trx_t*  trx;
 
271
 
 
272
        mutex_enter(&kernel_mutex);
 
273
        trx = trx_get_on_id(trx_id);
 
274
        ut_a(trx);
 
275
        mutex_exit(&kernel_mutex);
 
276
 
 
277
        return(TRUE);
 
278
}
 
279
#endif /* UNIV_DEBUG || UNIV_BLOB_LIGHT_DEBUG */
 
280
 
260
281
/********************************************************************
261
282
Returns the minumum trx id in trx list. This is the smallest id for which
262
283
the trx can possibly be active. (But, you must look at the trx->conc_state to