Hi Monty,
>Yuri> this sounds not trivial for me: could you tell me where to work?
>In sql/sql_table.cc:
>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
read-only.
Stepping to line 1428 with the debugger, worked because calling
mysql_lock_table() changed the locking mode.
Bye,
Yuri Dario
/*
* member of TeamOS/2 - Italy
* http://www.quasarbbs.com/yuri
* http://www.teamos2.it
*/