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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
966e4b44
Commit
966e4b44
authored
Nov 12, 2006
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge bk-internal.mysql.com:/home/bk/mysql-maria
into janus.mylan:/usr/home/serg/Abk/mysql-maria
parents
f6edbbc8
41f890bc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
5 deletions
+8
-5
storage/maria/lockman.c
storage/maria/lockman.c
+7
-4
storage/maria/unittest/lockman2-t.c
storage/maria/unittest/lockman2-t.c
+1
-1
No files found.
storage/maria/lockman.c
View file @
966e4b44
...
...
@@ -103,10 +103,6 @@
whether it's possible to lock the row, but no need to lock it - perhaps
the thread has a loose lock on this table). This is defined by
getlock_result[] table.
TODO optimization: table locks - they have completely
different characteristics. long lists, few distinct resources -
slow to scan, [possibly] high retry rate
*/
#include <my_global.h>
...
...
@@ -487,6 +483,9 @@ static int lockdelete(LOCK * volatile *head, LOCK *node, LF_PINS *pins)
res
=
lockfind
(
head
,
node
,
&
cursor
,
pins
);
DBUG_ASSERT
(
res
&
ALREADY_HAVE
);
if
(
cursor
.
upgrade_from
)
cursor
.
upgrade_from
->
flags
&=
~
IGNORE_ME
;
/*
XXX this does not work with savepoints, as old lock is left ignored.
It cannot be unignored, as would basically mean moving the lock back
...
...
@@ -506,7 +505,11 @@ static int lockdelete(LOCK * volatile *head, LOCK *node, LF_PINS *pins)
lockfind
(
head
,
node
,
&
cursor
,
pins
);
}
else
{
res
=
REPEAT_ONCE_MORE
;
if
(
cursor
.
upgrade_from
)
cursor
.
upgrade_from
->
flags
|=
IGNORE_ME
;
}
}
while
(
res
==
REPEAT_ONCE_MORE
);
_lf_unpin
(
pins
,
0
);
_lf_unpin
(
pins
,
1
);
...
...
storage/maria/unittest/lockman2-t.c
View file @
966e4b44
...
...
@@ -264,7 +264,7 @@ int main()
my_init
();
pthread_mutex_init
(
&
rt_mutex
,
0
);
plan
(
3
5
);
plan
(
3
9
);
if
(
my_atomic_initialize
())
return
exit_status
();
...
...
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