| 600 | ((ha_sequence*) table->file)->write_lock(); |
| 601 | } |
| 602 | void SEQUENCE::write_unlock(TABLE *table) |
| 603 | { |
| 604 | ((ha_sequence*) table->file)->unlock(); |
| 605 | mysql_rwlock_unlock(&mutex); |
| 606 | } |
| 607 | void SEQUENCE::read_lock(TABLE *table) |
| 608 | { |
| 609 | if (!((ha_sequence*) table->file)->is_locked()) |