diff options
author | Konstantin Osipov <kostja@sun.com> | 2010-06-01 14:13:56 +0400 |
---|---|---|
committer | Konstantin Osipov <kostja@sun.com> | 2010-06-01 14:13:56 +0400 |
commit | b9aa51e20995dc98f2739676499391cdcfbdec3d (patch) | |
tree | 7ece657e9307accdb5790bd8d79052d284e8b061 /include/thr_lock.h | |
parent | 7c01868287e82ba22b76b5b9d007c6746bca3061 (diff) | |
download | mariadb-git-b9aa51e20995dc98f2739676499391cdcfbdec3d.tar.gz |
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.
Diffstat (limited to 'include/thr_lock.h')
-rw-r--r-- | include/thr_lock.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/include/thr_lock.h b/include/thr_lock.h index 1f4072ca0c5..37dc37f8017 100644 --- a/include/thr_lock.h +++ b/include/thr_lock.h @@ -54,12 +54,6 @@ enum thr_lock_type { TL_IGNORE=-1, */ 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. */ |