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
4284a800
Commit
4284a800
authored
Dec 15, 2001
by
monty@hundin.mysql.fi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Last changes after merge with 3.23.47
parent
836f1608
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
30 additions
and
8 deletions
+30
-8
libmysqld/lib_sql.cc
libmysqld/lib_sql.cc
+1
-1
mysql-test/r/rpl_get_lock.result
mysql-test/r/rpl_get_lock.result
+6
-0
mysql-test/r/rpl_skip_error.result
mysql-test/r/rpl_skip_error.result
+11
-0
sql/log_event.cc
sql/log_event.cc
+12
-3
sql/slave.cc
sql/slave.cc
+0
-4
No files found.
libmysqld/lib_sql.cc
View file @
4284a800
...
...
@@ -448,7 +448,7 @@ int STDCALL mysql_server_init(int argc, char **argv, char **groups)
#ifdef USE_REGEX
regex_init
();
#endif
if
(
use_temp_pool
&&
bitmap_init
(
&
temp_pool
,
1024
))
if
(
use_temp_pool
&&
bitmap_init
(
&
temp_pool
,
1024
,
1
))
{
mysql_server_end
();
return
1
;
...
...
mysql-test/r/rpl_get_lock.result
View file @
4284a800
...
...
@@ -5,6 +5,12 @@ drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
slave start;
create table t1(n int);
insert into t1 values(get_lock("lock",2));
select get_lock("lock",2);
get_lock("lock",2)
1
select release_lock("lock");
release_lock("lock")
1
select get_lock("lock",3);
get_lock("lock",3)
1
...
...
mysql-test/r/rpl_skip_error.result
View file @
4284a800
slave stop;
reset master;
reset slave;
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
slave start;
drop table if exists t1;
create table t1 (n int not null primary key);
insert into t1 values (1);
insert into t1 values (1);
insert into t1 values (2),(3);
select * from t1;
n
1
2
...
...
sql/log_event.cc
View file @
4284a800
...
...
@@ -1529,6 +1529,12 @@ void Execute_load_log_event::pack_info(String* packet)
#endif
#ifndef MYSQL_CLIENT
int
ignored_error_code
(
int
err_code
)
{
return
use_slave_mask
&&
bitmap_is_set
(
&
slave_error_mask
,
err_code
);
}
int
Query_log_event
::
exec_event
(
struct
st_master_info
*
mi
)
{
int
expected_error
,
actual_error
=
0
;
...
...
@@ -1551,11 +1557,13 @@ int Query_log_event::exec_event(struct st_master_info* mi)
sanity check to make sure the master did not get a really bad
error on the query
*/
if
(
!
check_expected_error
(
thd
,
(
expected_error
=
error_code
)))
if
(
ignored_error_code
((
expected_error
=
error_code
))
||
!
check_expected_error
(
thd
,
expected_error
))
{
mysql_parse
(
thd
,
thd
->
query
,
q_len
);
if
(
expected_error
!=
(
actual_error
=
thd
->
net
.
last_errno
)
&&
expected_error
)
(
actual_error
=
thd
->
net
.
last_errno
)
&&
expected_error
&&
!
ignored_error_code
(
actual_error
))
{
const
char
*
errmsg
=
"Slave: did not get the expected error\
running query from master - expected: '%s' (%d), got '%s' (%d)"
;
...
...
@@ -1565,7 +1573,8 @@ int Query_log_event::exec_event(struct st_master_info* mi)
actual_error
);
thd
->
query_error
=
1
;
}
else
if
(
expected_error
==
actual_error
)
else
if
(
expected_error
==
actual_error
||
ignored_error_code
(
actual_error
))
{
thd
->
query_error
=
0
;
*
last_slave_error
=
0
;
...
...
sql/slave.cc
View file @
4284a800
...
...
@@ -1037,10 +1037,6 @@ point. If you are sure that your master is ok, run this query manually on the\
}
}
inline
int
ignored_error_code
(
int
err_code
)
{
return
use_slave_mask
&&
bitmap_is_set
(
&
slave_error_mask
,
err_code
);
}
static
int
exec_event
(
THD
*
thd
,
NET
*
net
,
MASTER_INFO
*
mi
,
int
event_len
)
...
...
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