public function requestRandomPassBuildLock($withTaxonomyTables = false) { $tables = array(); $tables[] = array('name' => 'tst_rnd_cpy', 'type' => ilDB::LOCK_WRITE); $tables[] = array('name' => 'qpl_questions', 'type' => ilDB::LOCK_WRITE); $tables[] = array('name' => 'qpl_qst_type', 'type' => ilDB::LOCK_WRITE); $tables[] = array('name' => 'tst_test_rnd_qst', 'type' => ilDB::LOCK_WRITE); $tables[] = array('name' => 'tst_test_rnd_qst', 'type' => ilDB::LOCK_WRITE, 'sequence' => true); if ($withTaxonomyTables) { $tables[] = array('name' => 'tax_tree s', 'type' => ilDB::LOCK_WRITE); $tables[] = array('name' => 'tax_tree t', 'type' => ilDB::LOCK_WRITE); $tables[] = array('name' => 'tax_node_assignment', 'type' => ilDB::LOCK_WRITE); } $this->db->lockTables($tables); }
public function requestUserTestResultUpdateLock() { $this->db->lockTables(array(array('name' => 'tst_result_cache', 'type' => ilDB::LOCK_WRITE))); }