From 1bde81589ce7b1f62c7d1213873413e76edbfb32 Mon Sep 17 00:00:00 2001 From: unknown Date: Thu, 22 Aug 2002 13:22:04 +0300 Subject: 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 --- innobase/include/lock0lock.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'innobase/include') 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 -- cgit v1.2.1