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
acc42386
Commit
acc42386
authored
Aug 03, 2005
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge epotemkin@bk-internal.mysql.com:/home/bk/mysql-5.0
into moonbone.local:/work/mysql-5.0-bug-11934
parents
3ca396cd
5792c4d1
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
1 deletion
+11
-1
mysql-test/r/flush_table.result
mysql-test/r/flush_table.result
+3
-0
mysql-test/t/flush_table.test
mysql-test/t/flush_table.test
+7
-0
sql/lock.cc
sql/lock.cc
+1
-1
No files found.
mysql-test/r/flush_table.result
View file @
acc42386
...
@@ -101,3 +101,6 @@ table_id
...
@@ -101,3 +101,6 @@ table_id
Record-02
Record-02
handler t1 close;
handler t1 close;
drop table t1;
drop table t1;
FLUSH TABLES WITH READ LOCK ;
FLUSH TABLES WITH READ LOCK ;
UNLOCK TABLES;
mysql-test/t/flush_table.test
View file @
acc42386
...
@@ -73,4 +73,11 @@ handler t1 read next limit 1;
...
@@ -73,4 +73,11 @@ handler t1 read next limit 1;
handler
t1
close
;
handler
t1
close
;
drop
table
t1
;
drop
table
t1
;
#
# Bug #11934 Two sequential FLUSH TABLES WITH READ LOCK hangs client
#
FLUSH
TABLES
WITH
READ
LOCK
;
FLUSH
TABLES
WITH
READ
LOCK
;
UNLOCK
TABLES
;
# End of 4.1 tests
# End of 4.1 tests
sql/lock.cc
View file @
acc42386
...
@@ -990,7 +990,7 @@ bool make_global_read_lock_block_commit(THD *thd)
...
@@ -990,7 +990,7 @@ bool make_global_read_lock_block_commit(THD *thd)
make_global_read_lock_block_commit(), do nothing.
make_global_read_lock_block_commit(), do nothing.
*/
*/
if
(
thd
->
global_read_lock
!=
GOT_GLOBAL_READ_LOCK
)
if
(
thd
->
global_read_lock
!=
GOT_GLOBAL_READ_LOCK
)
DBUG_RETURN
(
1
);
DBUG_RETURN
(
0
);
pthread_mutex_lock
(
&
LOCK_global_read_lock
);
pthread_mutex_lock
(
&
LOCK_global_read_lock
);
/* increment this BEFORE waiting on cond (otherwise race cond) */
/* increment this BEFORE waiting on cond (otherwise race cond) */
global_read_lock_blocks_commit
++
;
global_read_lock_blocks_commit
++
;
...
...
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