summaryrefslogtreecommitdiff
path: root/innobase
diff options
context:
space:
mode:
authorheikki@hundin.mysql.fi <>2003-07-03 03:34:20 +0300
committerheikki@hundin.mysql.fi <>2003-07-03 03:34:20 +0300
commit67b6ba21c3d9dbbdab29a254b7497c14d9f82a6d (patch)
treeb93156f4bd1f51529d553b3f3b64d907677e44d5 /innobase
parent7fd579148dc2568187add8e3edab24bc56116b4b (diff)
downloadmariadb-git-67b6ba21c3d9dbbdab29a254b7497c14d9f82a6d.tar.gz
lock0lock.c:
Remove outdated comment and the corresponding assertion in debug version code
Diffstat (limited to 'innobase')
-rw-r--r--innobase/lock/lock0lock.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/innobase/lock/lock0lock.c b/innobase/lock/lock0lock.c
index 397a8158bee..3f9b5316185 100644
--- a/innobase/lock/lock0lock.c
+++ b/innobase/lock/lock0lock.c
@@ -83,10 +83,6 @@ x-lock also has an explicit non-gap record x-lock. Therefore, as locks are
released, we can grant locks to waiting lock requests purely by looking at
the explicit lock requests in the queue.
-RULE 2: Granted non-gap locks on a record are always ahead in the queue
--------
-of waiting non-gap locks on a record.
-
RULE 3: Different transactions cannot have conflicting granted non-gap locks
-------
on a record at the same time. However, they can have conflicting granted gap
@@ -4271,7 +4267,6 @@ lock_rec_queue_validate(
{
trx_t* impl_trx;
lock_t* lock;
- ibool is_waiting;
ut_a(rec);
@@ -4332,8 +4327,6 @@ lock_rec_queue_validate(
}
}
- is_waiting = FALSE;
-
lock = lock_rec_get_first(rec);
while (lock) {
@@ -4346,8 +4339,6 @@ lock_rec_queue_validate(
}
if (!lock_rec_get_gap(lock) && !lock_get_wait(lock)) {
-
- ut_a(!is_waiting);
if (lock_get_mode(lock) == LOCK_S) {
ut_a(!lock_rec_other_has_expl_req(LOCK_X,
@@ -4359,7 +4350,6 @@ lock_rec_queue_validate(
} else if (lock_get_wait(lock) && !lock_rec_get_gap(lock)) {
- is_waiting = TRUE;
ut_a(lock_rec_has_to_wait_in_queue(lock));
}