| 594 | */ |
| 595 | |
| 596 | void SEQUENCE::write_lock(TABLE *table) |
| 597 | { |
| 598 | DBUG_ASSERT(((ha_sequence*) table->file)->is_locked() == 0); |
| 599 | mysql_rwlock_wrlock(&mutex); |
| 600 | ((ha_sequence*) table->file)->write_lock(); |
| 601 | } |
| 602 | void SEQUENCE::write_unlock(TABLE *table) |
| 603 | { |
| 604 | ((ha_sequence*) table->file)->unlock(); |