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
6eb1ddb3
Commit
6eb1ddb3
authored
May 09, 2006
by
mats@mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge mysqldev@production.mysql.com:my/mysql-5.1-release
into mysql.com:/home/bk/fix-mysql-5.1-new
parents
6a538d0d
4d0b8ce6
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
21 deletions
+20
-21
sql/log_event.cc
sql/log_event.cc
+15
-15
sql/rpl_rli.h
sql/rpl_rli.h
+5
-6
No files found.
sql/log_event.cc
View file @
6eb1ddb3
...
...
@@ -5350,6 +5350,7 @@ int Rows_log_event::exec_event(st_relay_log_info *rli)
slave_print_msg
(
ERROR_LEVEL
,
rli
,
error
,
"Error in %s event: when locking tables"
,
get_type_str
());
rli
->
clear_tables_to_lock
();
DBUG_RETURN
(
error
);
}
...
...
@@ -5385,6 +5386,7 @@ int Rows_log_event::exec_event(st_relay_log_info *rli)
"unexpected success or fatal error"
));
thd
->
query_error
=
1
;
}
rli
->
clear_tables_to_lock
();
DBUG_RETURN
(
error
);
}
}
...
...
@@ -5393,19 +5395,17 @@ int Rows_log_event::exec_event(st_relay_log_info *rli)
the table map and remove them from tables to lock.
*/
TABLE_LIST
*
ptr
=
rli
->
tables_to_lock
;
while
(
ptr
)
TABLE_LIST
*
ptr
;
for
(
ptr
=
rli
->
tables_to_lock
;
ptr
;
ptr
=
ptr
->
next_global
)
{
rli
->
m_table_map
.
set_table
(
ptr
->
table_id
,
ptr
->
table
);
rli
->
touching_table
(
ptr
->
db
,
ptr
->
table_name
,
ptr
->
table_id
);
char
*
to_free
=
reinterpret_cast
<
char
*>
(
ptr
);
ptr
=
ptr
->
next_global
;
my_free
(
to_free
,
MYF
(
MY_WME
));
}
rli
->
tables_to_lock
=
0
;
rli
->
tables_to_lock_count
=
0
;
rli
->
clear_tables_to_lock
();
}
DBUG_ASSERT
(
rli
->
tables_to_lock
==
NULL
&&
rli
->
tables_to_lock_count
==
0
);
TABLE
*
table
=
rli
->
m_table_map
.
get_table
(
m_table_id
);
if
(
table
)
...
...
@@ -5816,12 +5816,8 @@ int Table_map_log_event::exec_event(st_relay_log_info *rli)
&
tname_mem
,
NAME_LEN
+
1
,
NULL
);
/*
If memory is allocated, it the pointer to it should be stored in
table_list. If this is not true, the memory will not be correctly
free:ed later.
*/
DBUG_ASSERT
(
memory
==
NULL
||
memory
==
table_list
);
if
(
memory
==
NULL
)
DBUG_RETURN
(
HA_ERR_OUT_OF_MEM
);
uint32
dummy_len
;
bzero
(
table_list
,
sizeof
(
*
table_list
));
...
...
@@ -5836,8 +5832,12 @@ int Table_map_log_event::exec_event(st_relay_log_info *rli)
int
error
=
0
;
if
(
rpl_filter
->
db_ok
(
table_list
->
db
)
&&
(
!
rpl_filter
->
is_on
()
||
rpl_filter
->
tables_ok
(
""
,
table_list
)))
if
(
!
rpl_filter
->
db_ok
(
table_list
->
db
)
||
(
rpl_filter
->
is_on
()
&&
!
rpl_filter
->
tables_ok
(
""
,
table_list
)))
{
my_free
((
gptr
)
memory
,
MYF
(
MY_WME
));
}
else
{
/*
Check if the slave is set to use SBR. If so, it should switch
...
...
sql/rpl_rli.h
View file @
6eb1ddb3
...
...
@@ -309,15 +309,14 @@ typedef struct st_relay_log_info
void
cleanup_context
(
THD
*
,
bool
);
void
clear_tables_to_lock
()
{
TABLE_LIST
*
ptr
=
tables_to_lock
;
while
(
ptr
)
while
(
tables_to_lock
)
{
char
*
to_free
=
reinterpret_cast
<
char
*>
(
ptr
);
ptr
=
ptr
->
next_global
;
char
*
to_free
=
reinterpret_cast
<
gptr
>
(
tables_to_lock
);
tables_to_lock
=
tables_to_lock
->
next_global
;
tables_to_lock_count
--
;
my_free
(
to_free
,
MYF
(
MY_WME
));
}
tables_to_lock
=
0
;
tables_to_lock_count
=
0
;
DBUG_ASSERT
(
tables_to_lock
==
NULL
&&
tables_to_lock_count
==
0
);
}
time_t
unsafe_to_stop_at
;
...
...
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