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
f5a1abd8
Commit
f5a1abd8
authored
Dec 20, 2001
by
monty@hundin.mysql.fi
Browse files
Options
Browse Files
Download
Plain Diff
merge
parents
505aeabd
7b672bc9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
0 deletions
+30
-0
mysql-test/t/rpl_get_lock.test
mysql-test/t/rpl_get_lock.test
+7
-0
sql/sql_parse.cc
sql/sql_parse.cc
+23
-0
No files found.
mysql-test/t/rpl_get_lock.test
View file @
f5a1abd8
...
@@ -6,6 +6,13 @@ dirty_close master;
...
@@ -6,6 +6,13 @@ dirty_close master;
connection
master1
;
connection
master1
;
select
get_lock
(
"lock"
,
2
);
select
get_lock
(
"lock"
,
2
);
select
release_lock
(
"lock"
);
select
release_lock
(
"lock"
);
let
$
1
=
2000
;
while
(
$
1
)
{
do
get_lock
(
"lock"
,
2
);
do
release_lock
(
"lock"
);
dec
$
1
;
}
save_master_pos
;
save_master_pos
;
connection
slave
;
connection
slave
;
sync_with_master
;
sync_with_master
;
...
...
sql/sql_parse.cc
View file @
f5a1abd8
...
@@ -1100,6 +1100,29 @@ mysql_execute_command(void)
...
@@ -1100,6 +1100,29 @@ mysql_execute_command(void)
SELECT_LEX
*
select_lex
=
lex
->
select
;
SELECT_LEX
*
select_lex
=
lex
->
select
;
DBUG_ENTER
(
"mysql_execute_command"
);
DBUG_ENTER
(
"mysql_execute_command"
);
if
(
thd
->
slave_thread
)
{
/*
Skip if we are in the slave thread, some table rules have been
given and the table list says the query should not be replicated
*/
if
(
table_rules_on
&&
tables
&&
!
tables_ok
(
thd
,
tables
))
DBUG_VOID_RETURN
;
#ifndef TO_BE_DELETED
/*
This is a workaround to deal with the shortcoming in 3.23.44-3.23.46
masters in RELEASE_LOCK() logging. We re-write SELECT RELEASE_LOCK()
as DO RELEASE_LOCK()
*/
if
(
lex
->
sql_command
==
SQLCOM_SELECT
)
{
lex
->
sql_command
=
SQLCOM_DO
;
lex
->
insert_list
=
&
lex
->
item_list
;
}
#endif
}
thread_safe_increment
(
com_stat
[
lex
->
sql_command
],
&
LOCK_thread_count
);
/*
/*
Skip if we are in the slave thread, some table rules have been given
Skip if we are in the slave thread, some table rules have been given
and the table list says the query should not be replicated
and the table list says the query should not be replicated
...
...
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