21 #include "my_global.h" 
   22 #include "my_pthread.h" 
   29 THR_LOCK table_file_instances::m_table_lock;
 
   34     { C_STRING_WITH_LEN(
"FILE_NAME") },
 
   35     { C_STRING_WITH_LEN(
"varchar(512)") },
 
   39     { C_STRING_WITH_LEN(
"EVENT_NAME") },
 
   40     { C_STRING_WITH_LEN(
"varchar(128)") },
 
   44     { C_STRING_WITH_LEN(
"OPEN_COUNT") },
 
   45     { C_STRING_WITH_LEN(
"int(10)") },
 
   51 table_file_instances::m_field_def=
 
   57   { C_STRING_WITH_LEN(
"file_instances") },
 
   59   &table_file_instances::create,
 
   75 table_file_instances::table_file_instances()
 
   77   m_row_exists(false), m_pos(0), m_next_pos(0)
 
   90   for (m_pos.
set_at(&m_next_pos);
 
  103   return HA_ERR_END_OF_FILE;
 
  115     return HA_ERR_RECORD_DELETED;
 
  121 void table_file_instances::make_row(
PFS_file *pfs)
 
  131   safe_class= sanitize_file_class(pfs->
m_class);
 
  132   if (unlikely(safe_class == NULL))
 
  145 int table_file_instances::read_row_values(
TABLE *
table,
 
  152   if (unlikely(! m_row_exists))
 
  153     return HA_ERR_RECORD_DELETED;
 
  156   DBUG_ASSERT(table->s->null_bytes == 0);
 
  158   for (; (f= *fields) ; fields++)
 
  160     if (read_all || bitmap_is_set(table->read_set, f->field_index))
 
  162       switch(f->field_index)