summaryrefslogtreecommitdiff
path: root/include/thr_lock.h
diff options
context:
space:
mode:
authorunknown <monty@donna.mysql.com>2001-01-16 06:02:05 +0200
committerunknown <monty@donna.mysql.com>2001-01-16 06:02:05 +0200
commit0365e2d3dceccb1dc3727336e1596869e3c1a180 (patch)
treed2fb03ef30e8182ca60cf1262a5a9db0e97a08a5 /include/thr_lock.h
parent9e67d0bec4c5d697c76ce05f12d424210ea0b656 (diff)
downloadmariadb-git-0365e2d3dceccb1dc3727336e1596869e3c1a180.tar.gz
Removed not used variable 'last_ref'
Fixed problem with negative DECIMAL() keys Fixed some bugs with NULL keys in BDB More mysql-test tests Docs/manual.texi: Changelog client/mysqltest.c: Added syntax: -- error #,#,... heap/hp_info.c: cleanup include/thr_lock.h: cleanup isam/pack_isam.c: cleanup myisam/mi_check.c: cleanup myisam/mi_extra.c: cleanup myisammrg/myrg_rkey.c: cleanup mysql-test/mysql-test-run.sh: Change to run test as root mysql-test/r/bdb.result: Many new tests mysql-test/r/func_system.result: Change to root user mysql-test/t/bdb.test: many more tests mysql-test/t/create.test: Change to work by test and root user sql/field.cc: Fixed problem with negative DECIMAL() keys sql/filesort.cc: cleanup sql/ha_berkeley.cc: Added purecoverage notes Fixed some bugs with NULL keys sql/init.cc: cleanup sql/mysql_priv.h: cleanup sql/mysqld.cc: cleanup sql/records.cc: cleanup sql/unireg.h: cleanup
Diffstat (limited to 'include/thr_lock.h')
-rw-r--r--include/thr_lock.h31
1 files changed, 28 insertions, 3 deletions
diff --git a/include/thr_lock.h b/include/thr_lock.h
index 288a762703d..569a09d7aa5 100644
--- a/include/thr_lock.h
+++ b/include/thr_lock.h
@@ -29,11 +29,36 @@ extern "C" {
struct st_thr_lock;
enum thr_lock_type { TL_IGNORE=-1,
- TL_UNLOCK, TL_READ, TL_READ_HIGH_PRIORITY,
+ TL_UNLOCK, /* UNLOCK ANY LOCK */
+ TL_READ, /* Read lock */
+ /* High prior. than TL_WRITE. Allow concurrent insert */
+ TL_READ_HIGH_PRIORITY,
+ /* READ, Don't allow concurrent insert */
TL_READ_NO_INSERT,
- TL_WRITE_ALLOW_WRITE, TL_WRITE_ALLOW_READ,
+ /*
+ Write lock, but allow other threads to read / write.
+ Used by BDB tables in MySQL to mark that someone is
+ reading/writing to the table.
+ */
+ TL_WRITE_ALLOW_WRITE,
+ /*
+ Write lock, but allow other threads to read / write.
+ Used by ALTER TABLE in MySQL to mark 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.
+ */
TL_WRITE_CONCURRENT_INSERT,
- TL_WRITE_DELAYED, TL_WRITE_LOW_PRIORITY, TL_WRITE,
+ /* Write used by INSERT DELAYED. Allows READ locks */
+ TL_WRITE_DELAYED,
+ /* WRITE lock that has lower priority than TL_READ */
+ TL_WRITE_LOW_PRIORITY,
+ /* Normal WRITE lock */
+ TL_WRITE,
+ /* Abort new lock request with an error */
TL_WRITE_ONLY};
extern ulong max_write_lock_count;