~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to storage/innobase/trx/trx0i_s.c

Tags: innodb-plugin-1.0.2
InnoDB Plugin 1.0.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
391
391
 
392
392
        row->trx_weight = (ullint) ut_conv_dulint_to_longlong(TRX_WEIGHT(trx));
393
393
 
394
 
        row->trx_mysql_thread_id = ib_thd_get_thread_id(trx->mysql_thd);
 
394
        if (trx->mysql_thd != NULL) {
 
395
                row->trx_mysql_thread_id
 
396
                        = ib_thd_get_thread_id(trx->mysql_thd);
 
397
        } else {
 
398
                /* For internal transactions e.g., purge and transactions
 
399
                being recovered at startup there is no associated MySQL
 
400
                thread data structure. */
 
401
                row->trx_mysql_thread_id = 0;
 
402
        }
395
403
 
396
404
        if (trx->mysql_query_str != NULL && *trx->mysql_query_str != NULL) {
397
405