Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
67b6ba21
Commit
67b6ba21
authored
Jul 03, 2003
by
heikki@hundin.mysql.fi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lock0lock.c:
Remove outdated comment and the corresponding assertion in debug version code
parent
7fd57914
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
10 deletions
+0
-10
innobase/lock/lock0lock.c
innobase/lock/lock0lock.c
+0
-10
No files found.
innobase/lock/lock0lock.c
View file @
67b6ba21
...
@@ -83,10 +83,6 @@ x-lock also has an explicit non-gap record x-lock. Therefore, as locks are
...
@@ -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
released, we can grant locks to waiting lock requests purely by looking at
the explicit lock requests in the queue.
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
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
on a record at the same time. However, they can have conflicting granted gap
...
@@ -4271,7 +4267,6 @@ lock_rec_queue_validate(
...
@@ -4271,7 +4267,6 @@ lock_rec_queue_validate(
{
{
trx_t
*
impl_trx
;
trx_t
*
impl_trx
;
lock_t
*
lock
;
lock_t
*
lock
;
ibool
is_waiting
;
ut_a
(
rec
);
ut_a
(
rec
);
...
@@ -4332,8 +4327,6 @@ lock_rec_queue_validate(
...
@@ -4332,8 +4327,6 @@ lock_rec_queue_validate(
}
}
}
}
is_waiting
=
FALSE
;
lock
=
lock_rec_get_first
(
rec
);
lock
=
lock_rec_get_first
(
rec
);
while
(
lock
)
{
while
(
lock
)
{
...
@@ -4347,8 +4340,6 @@ lock_rec_queue_validate(
...
@@ -4347,8 +4340,6 @@ lock_rec_queue_validate(
if
(
!
lock_rec_get_gap
(
lock
)
&&
!
lock_get_wait
(
lock
))
{
if
(
!
lock_rec_get_gap
(
lock
)
&&
!
lock_get_wait
(
lock
))
{
ut_a
(
!
is_waiting
);
if
(
lock_get_mode
(
lock
)
==
LOCK_S
)
{
if
(
lock_get_mode
(
lock
)
==
LOCK_S
)
{
ut_a
(
!
lock_rec_other_has_expl_req
(
LOCK_X
,
ut_a
(
!
lock_rec_other_has_expl_req
(
LOCK_X
,
0
,
0
,
rec
,
lock
->
trx
));
0
,
0
,
rec
,
lock
->
trx
));
...
@@ -4359,7 +4350,6 @@ lock_rec_queue_validate(
...
@@ -4359,7 +4350,6 @@ lock_rec_queue_validate(
}
else
if
(
lock_get_wait
(
lock
)
&&
!
lock_rec_get_gap
(
lock
))
{
}
else
if
(
lock_get_wait
(
lock
)
&&
!
lock_rec_get_gap
(
lock
))
{
is_waiting
=
TRUE
;
ut_a
(
lock_rec_has_to_wait_in_queue
(
lock
));
ut_a
(
lock_rec_has_to_wait_in_queue
(
lock
));
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment