~percona-core/percona-server/5.6

« back to all changes in this revision

Viewing changes to Percona-Server/sql/sql_base.cc

  • Committer: Laurynas Biveinis
  • Date: 2013-05-26 10:50:45 UTC
  • mfrom: (352.2.4 5.6)
  • Revision ID: laurynas.biveinis@percona.com-20130526105045-8ut2qf000r1diord
AutomergeĀ lp:~akopytov/percona-server/bug1131189-5.6

Show diffs side-by-side

added added

removed removed

Lines of Context:
1490
1490
  table->mdl_ticket= NULL;
1491
1491
 
1492
1492
  mysql_mutex_lock(&thd->LOCK_thd_data);
1493
 
  if(table->file)
 
1493
 
 
1494
  if(unlikely(opt_userstat && table->file))
1494
1495
  {
1495
1496
    table->file->update_global_table_stats();
1496
1497
    table->file->update_global_index_stats();
1497
1498
  }
 
1499
 
1498
1500
  *table_ptr=table->next;
1499
1501
  mysql_mutex_unlock(&thd->LOCK_thd_data);
1500
1502
 
2152
2154
  DBUG_PRINT("tmptable", ("closing table: '%s'.'%s'",
2153
2155
                          table->s->db.str, table->s->table_name.str));
2154
2156
 
2155
 
  table->file->update_global_table_stats();
2156
 
  table->file->update_global_index_stats();
 
2157
  if (unlikely(opt_userstat))
 
2158
  {
 
2159
    table->file->update_global_table_stats();
 
2160
    table->file->update_global_index_stats();
 
2161
  }
 
2162
 
2157
2163
  free_io_cache(table);
2158
2164
  closefrm(table, 0);
2159
2165
  if (delete_table)