MCPcopy Create free account
hub / github.com/MariaDB/server / write_lock

Method write_lock

sql/sql_sequence.cc:596–601  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

594*/
595
596void 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}
602void SEQUENCE::write_unlock(TABLE *table)
603{
604 ((ha_sequence*) table->file)->unlock();

Callers 2

executeMethod · 0.45
write_rowMethod · 0.45

Calls 1

is_lockedMethod · 0.45

Tested by

no test coverage detected