~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to plugin/innobase/trx/trx0trx.c

  • Committer: Monty Taylor
  • Date: 2010-11-26 22:50:54 UTC
  • mfrom: (1953.1.6 build)
  • Revision ID: mordred@inaugust.com-20101126225054-sg90svw8579t5p3i
Stewart - InnoDB 1.1.1
Monty - Fixed some autoconf tests which were returning false positives.

Show diffs side-by-side

added added

removed removed

Lines of Context:
51
51
the kernel mutex */
52
52
UNIV_INTERN ulint       trx_n_mysql_transactions = 0;
53
53
 
 
54
#ifdef UNIV_PFS_MUTEX
 
55
/* Key to register the mutex with performance schema */
 
56
UNIV_INTERN mysql_pfs_key_t     trx_undo_mutex_key;
 
57
#endif /* UNIV_PFS_MUTEX */
 
58
 
54
59
/*************************************************************//**
55
60
Set detailed error message for the transaction. */
56
61
UNIV_INTERN
127
132
        trx->mysql_log_file_name = NULL;
128
133
        trx->mysql_log_offset = 0;
129
134
 
130
 
        mutex_create(&trx->undo_mutex, SYNC_TRX_UNDO);
 
135
        mutex_create(trx_undo_mutex_key, &trx->undo_mutex, SYNC_TRX_UNDO);
131
136
 
132
137
        trx->rseg = NULL;
133
138
 
754
759
                if (undo) {
755
760
                        mutex_enter(&kernel_mutex);
756
761
                        trx->no = trx_sys_get_new_trx_no();
757
 
 
758
762
                        mutex_exit(&kernel_mutex);
759
763
 
760
764
                        /* It is not necessary to obtain trx->undo_mutex here