Rename lock_pool_t to lock_list

Also, replace reverse iteration with forward iteration.

lock_table_has(): Remove a redundant condition.
This commit is contained in:
Marko Mäkelä 2018-08-13 12:34:12 +03:00
commit 6583506570
4 changed files with 16 additions and 36 deletions

View file

@ -190,7 +190,7 @@ struct TrxFactory {
the constructors of the trx_t members. */
new(&trx->mod_tables) trx_mod_tables_t();
new(&trx->lock.table_locks) lock_pool_t();
new(&trx->lock.table_locks) lock_list();
trx_init(trx);
@ -243,7 +243,7 @@ struct TrxFactory {
ut_ad(trx->read_view == NULL);
trx->lock.table_locks.~lock_pool_t();
trx->lock.table_locks.~lock_list();
}
/** Enforce any invariants here, this is called before the transaction