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
6a0d5c01
Commit
6a0d5c01
authored
Mar 30, 2007
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge romeo.(none):/home/bkroot/mysql-5.1-new-rpl
into romeo.(none):/home/bk/w3464-mysql-5.1-new-rpl
parents
89a21aba
ccc65d8e
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
8 additions
and
8 deletions
+8
-8
mysql-test/r/rpl_incident.result
mysql-test/r/rpl_incident.result
+1
-1
sql/log_event.cc
sql/log_event.cc
+2
-2
sql/log_event.h
sql/log_event.h
+1
-1
sql/rpl_rli.cc
sql/rpl_rli.cc
+3
-3
sql/sql_class.h
sql/sql_class.h
+1
-1
No files found.
mysql-test/r/rpl_incident.result
View file @
6a0d5c01
...
@@ -47,7 +47,7 @@ Replicate_Do_Table
...
@@ -47,7 +47,7 @@ Replicate_Do_Table
Replicate_Ignore_Table
Replicate_Ignore_Table
Replicate_Wild_Do_Table
Replicate_Wild_Do_Table
Replicate_Wild_Ignore_Table
Replicate_Wild_Ignore_Table
Last_Errno 158
3
Last_Errno 158
6
Last_Error The incident LOST_EVENTS occured on the master. Message: <none>
Last_Error The incident LOST_EVENTS occured on the master. Message: <none>
Skip_Counter 0
Skip_Counter 0
Exec_Master_Log_Pos #
Exec_Master_Log_Pos #
...
...
sql/log_event.cc
View file @
6a0d5c01
...
@@ -7956,9 +7956,9 @@ Incident_log_event::print(FILE *file,
...
@@ -7956,9 +7956,9 @@ Incident_log_event::print(FILE *file,
#if defined(HAVE_REPLICATION) && !defined(MYSQL_CLIENT)
#if defined(HAVE_REPLICATION) && !defined(MYSQL_CLIENT)
int
int
Incident_log_event
::
exec_event
(
st_relay_log_info
*
rli
)
Incident_log_event
::
do_apply_event
(
RELAY_LOG_INFO
const
*
rli
)
{
{
DBUG_ENTER
(
"Incident_log_event::
exec
_event"
);
DBUG_ENTER
(
"Incident_log_event::
do_apply
_event"
);
slave_print_msg
(
ERROR_LEVEL
,
rli
,
ER_SLAVE_INCIDENT
,
slave_print_msg
(
ERROR_LEVEL
,
rli
,
ER_SLAVE_INCIDENT
,
ER
(
ER_SLAVE_INCIDENT
),
ER
(
ER_SLAVE_INCIDENT
),
description
(),
description
(),
...
...
sql/log_event.h
View file @
6a0d5c01
...
@@ -2588,7 +2588,7 @@ class Incident_log_event : public Log_event {
...
@@ -2588,7 +2588,7 @@ class Incident_log_event : public Log_event {
#endif
#endif
#if !defined(MYSQL_CLIENT) && defined(HAVE_REPLICATION)
#if !defined(MYSQL_CLIENT) && defined(HAVE_REPLICATION)
virtual
int
exec_event
(
struct
st_relay_log_info
*
rli
);
virtual
int
do_apply_event
(
RELAY_LOG_INFO
const
*
rli
);
#endif
#endif
virtual
bool
write_data_header
(
IO_CACHE
*
file
);
virtual
bool
write_data_header
(
IO_CACHE
*
file
);
...
...
sql/rpl_rli.cc
View file @
6a0d5c01
...
@@ -969,7 +969,7 @@ int purge_relay_logs(RELAY_LOG_INFO* rli, THD *thd, bool just_reset,
...
@@ -969,7 +969,7 @@ int purge_relay_logs(RELAY_LOG_INFO* rli, THD *thd, bool just_reset,
strtol() conversions needed for log names comparison. We don't need to
strtol() conversions needed for log names comparison. We don't need to
compare them each time this function is called, we only need to do this
compare them each time this function is called, we only need to do this
when current log name changes. If we have UNTIL_MASTER_POS condition we
when current log name changes. If we have UNTIL_MASTER_POS condition we
need to do this only after Rotate_log_event::
exec
_event() (which is
need to do this only after Rotate_log_event::
do_apply
_event() (which is
rare, so caching gives real benifit), and if we have UNTIL_RELAY_POS
rare, so caching gives real benifit), and if we have UNTIL_RELAY_POS
condition then we should invalidate cached comarison value after
condition then we should invalidate cached comarison value after
inc_group_relay_log_pos() which called for each group of events (so we
inc_group_relay_log_pos() which called for each group of events (so we
...
@@ -1093,12 +1093,12 @@ void st_relay_log_info::cleanup_context(THD *thd, bool error)
...
@@ -1093,12 +1093,12 @@ void st_relay_log_info::cleanup_context(THD *thd, bool error)
DBUG_ASSERT
(
sql_thd
==
thd
);
DBUG_ASSERT
(
sql_thd
==
thd
);
/*
/*
1) Instances of Table_map_log_event, if ::
exec
_event() was called on them,
1) Instances of Table_map_log_event, if ::
do_apply
_event() was called on them,
may have opened tables, which we cannot be sure have been closed (because
may have opened tables, which we cannot be sure have been closed (because
maybe the Rows_log_event have not been found or will not be, because slave
maybe the Rows_log_event have not been found or will not be, because slave
SQL thread is stopping, or relay log has a missing tail etc). So we close
SQL thread is stopping, or relay log has a missing tail etc). So we close
all thread's tables. And so the table mappings have to be cancelled.
all thread's tables. And so the table mappings have to be cancelled.
2) Rows_log_event::
exec
_event() may even have started statements or
2) Rows_log_event::
do_apply
_event() may even have started statements or
transactions on them, which we need to rollback in case of error.
transactions on them, which we need to rollback in case of error.
3) If finding a Format_description_log_event after a BEGIN, we also need
3) If finding a Format_description_log_event after a BEGIN, we also need
to rollback before continuing with the next events.
to rollback before continuing with the next events.
...
...
sql/sql_class.h
View file @
6a0d5c01
...
@@ -1270,7 +1270,7 @@ class THD :public Statement,
...
@@ -1270,7 +1270,7 @@ class THD :public Statement,
return
first_successful_insert_id_in_prev_stmt
;
return
first_successful_insert_id_in_prev_stmt
;
}
}
/*
/*
Used by Intvar_log_event::
exec
_event() and by "SET INSERT_ID=#"
Used by Intvar_log_event::
do_apply
_event() and by "SET INSERT_ID=#"
(mysqlbinlog). We'll soon add a variant which can take many intervals in
(mysqlbinlog). We'll soon add a variant which can take many intervals in
argument.
argument.
*/
*/
...
...
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