23 if (!(current_table = info->current_table) &&
24 info->open_tables != info->end_table)
25 current_table = info->open_tables;
26 return current_table ?
27 current_table->table->lastpos + current_table->file_offset :
34 DBUG_ENTER(
"myrg_status");
36 if (!(current_table = info->current_table) &&
37 info->open_tables != info->end_table)
38 current_table = info->open_tables;
39 x->recpos = info->current_table ?
40 info->current_table->table->lastpos + info->current_table->file_offset :
42 if (flag != HA_STATUS_POS)
46 info->records=info->del=info->data_file_length=0;
47 for (file=info->open_tables ; file != info->end_table ; file++)
49 file->file_offset=info->data_file_length;
50 info->data_file_length+=file->table->s->state.state.data_file_length;
51 info->records+=file->table->s->state.state.records;
52 info->del+=file->table->s->state.state.del;
53 DBUG_PRINT(
"info2",(
"table: %s, offset: %lu",
54 file->table->filename,(ulong) file->file_offset));
56 x->records= info->records;
57 x->deleted= info->del;
58 x->data_file_length= info->data_file_length;
59 x->reclength= info->reclength;
60 x->options= info->options;
70 x->errkey= current_table->table->errkey;
76 x->dupp_key_pos= current_table->file_offset + current_table->table->dupp_key_pos;
83 x->rec_per_key = info->rec_per_key_part;