mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
A follow up patch for the fix for Bug#51263 "Deadlock between
transactional SELECT and ALTER TABLE ... REBUILD PARTITION". Remove unused code - TL_WRITE_ALLOW_READ thr_lock.c lock. include/thr_lock.h: Remove TL_WRITE_ALLOW_READ. mysys/CMakeLists.txt: Add thr_lock test to the list of CMake executables to build. mysys/thr_lock.c: Remove TL_WRITE_ALLOW_READ thr_lock.c lock. Consequently, simplify lock compatibility rules. Remove unused code. sql/sql_test.cc: Remove TL_WRITE_ALLOW_READ lock.
This commit is contained in:
@@ -53,12 +53,6 @@ enum thr_lock_type { TL_IGNORE=-1,
|
||||
reading/writing to the table.
|
||||
*/
|
||||
TL_WRITE_ALLOW_WRITE,
|
||||
/*
|
||||
Write lock, but allow other threads to read.
|
||||
Used by ALTER TABLE in MySQL to allow readers
|
||||
to use the table until ALTER TABLE is finished.
|
||||
*/
|
||||
TL_WRITE_ALLOW_READ,
|
||||
/*
|
||||
WRITE lock used by concurrent insert. Will allow
|
||||
READ, if one could use concurrent insert on table.
|
||||
|
Reference in New Issue
Block a user