~posulliv/drizzle/optimizer-style-cleanup

« back to all changes in this revision

Viewing changes to plugin/innobase/read/read0read.c

  • Committer: Padraig O'Sullivan
  • Date: 2010-03-15 14:05:26 UTC
  • mfrom: (1237.9.99 staging)
  • Revision ID: osullivan.padraig@gmail.com-20100315140526-opbgwdwn6tfecdkq
MergeĀ fromĀ trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
422
422
        curview = (cursor_view_t*) mem_heap_alloc(heap, sizeof(cursor_view_t));
423
423
        curview->heap = heap;
424
424
 
425
 
        /* Drop cursor tables from consideration when evaluating the need of
426
 
        auto-commit */
427
 
        curview->n_mysql_tables_in_use = cr_trx->n_mysql_tables_in_use;
428
 
        cr_trx->n_mysql_tables_in_use = 0;
429
 
 
430
425
        mutex_enter(&kernel_mutex);
431
426
 
432
427
        curview->read_view = read_view_create_low(
503
498
 
504
499
        /* Add cursor's tables to the global count of active tables that
505
500
        belong to this transaction */
506
 
        trx->n_mysql_tables_in_use += curview->n_mysql_tables_in_use;
507
501
 
508
502
        mutex_enter(&kernel_mutex);
509
503