summaryrefslogtreecommitdiff
path: root/innobase/include
diff options
context:
space:
mode:
authorunknown <heikki@hundin.mysql.fi>2002-08-22 13:22:04 +0300
committerunknown <heikki@hundin.mysql.fi>2002-08-22 13:22:04 +0300
commit1bde81589ce7b1f62c7d1213873413e76edbfb32 (patch)
treefb044a2a44fd08d0c90c1091989d4e7ad9877555 /innobase/include
parentb3ff14369be62f670d6dac8eb7c9caa29bf1b5c2 (diff)
downloadmariadb-git-1bde81589ce7b1f62c7d1213873413e76edbfb32.tar.gz
lock0lock.h, lock0lock.c:
Remove a spurious deadlock when >= 2 insert transactions have to wait because there is a next-key lock set innobase/lock/lock0lock.c: Remove a spurious deadlock when >= 2 insert transactions have to wait because there is a next-key lock set innobase/include/lock0lock.h: Remove a spurious deadlock when >= 2 insert transactions have to wait because there is a next-key lock set
Diffstat (limited to 'innobase/include')
-rw-r--r--innobase/include/lock0lock.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/innobase/include/lock0lock.h b/innobase/include/lock0lock.h
index 80afba97416..288356d3270 100644
--- a/innobase/include/lock0lock.h
+++ b/innobase/include/lock0lock.h
@@ -537,7 +537,15 @@ extern lock_sys_t* lock_sys;
the bit is set; locks of this type are created
when records are removed from the index chain
of records */
-
+#define LOCK_INSERT_INTENTION 1024 /* this bit is set when we place a waiting
+ gap type record lock request in order to let
+ an insert of an index record to wait until
+ there are no conflicting locks by other
+ transactions on the gap; note that this flag
+ remains set when the waiting lock is granted,
+ or if the lock is inherited to a neighboring
+ record */
+
/* When lock bits are reset, the following flags are available: */
#define LOCK_RELEASE_WAIT 1
#define LOCK_NOT_RELEASE_WAIT 2