~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/innobase/handler/ha_innodb.cc

  • Committer: Joseph Daly
  • Date: 2010-10-21 01:10:35 UTC
  • mto: (1856.2.16 transaction_id_innodb)
  • mto: This revision was merged to the branch mainline in revision 1900.
  • Revision ID: skinny.moey@gmail.com-20101021011035-hn37i9x3nqt105be
add global_resource_manager for non innodb engines

Show diffs side-by-side

added added

removed removed

Lines of Context:
8257
8257
 
8258
8258
uint64_t InnobaseEngine::doGetTransactionId(Session *session)
8259
8259
{
8260
 
  trx_t *trx= session_to_trx(session);
 
8260
  trx_t *trx= innobase_trx_allocate(session);
 
8261
 
 
8262
  mutex_enter(&kernel_mutex);
 
8263
  trx->id = trx_sys_get_new_trx_id();
 
8264
  mutex_exit(&kernel_mutex);
 
8265
 
8261
8266
  return (ib_uint64_t) ut_conv_dulint_to_longlong(trx->id);
8262
8267
}
8263
8268