>Yuri> this sounds not trivial for me: could you tell me where to work?
>int mysql_analyze_table(THD* thd, TABLE_LIST* tables, HA_CHECK_OPT* check_opt)
>int mysql_check_table(THD* thd, TABLE_LIST* tables,HA_CHECK_OPT* check_opt)
>For OS/2, you have to change TL_READ_NO_INSERT to TL_WRITE if you want
I did that, and worked in most situations. But this one
lock table t1 read
check table t1
hit the lock type check at open_ltable() line 1408. So I lowered the
lock_type to TL_WRITE_ALLOW_WRITE to soddify the check.
But this doesn't call my_lock() (with a WRLCK), so the file is still
Stepping to line 1428 with the debugger, worked because calling
mysql_lock_table() changed the locking mode.
* member of TeamOS/2 - Italy