use table->pos_in_table_list instead. Also, table->in_use is always set
Attach a file by drag & drop or click to upload