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
43286bf4
Commit
43286bf4
authored
Jul 11, 2007
by
kaa@polly.local
Browse files
Options
Browse Files
Download
Plain Diff
Merge polly.local:/home/kaa/src/maint/bug24192/my50-bug24192
into polly.local:/home/kaa/src/maint/mysql-5.0-maint
parents
9b4c3d0d
b270fa67
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
13 deletions
+17
-13
sql/slave.cc
sql/slave.cc
+17
-13
No files found.
sql/slave.cc
View file @
43286bf4
...
@@ -26,6 +26,7 @@
...
@@ -26,6 +26,7 @@
#include <my_dir.h>
#include <my_dir.h>
#include <sql_common.h>
#include <sql_common.h>
#include <errmsg.h>
#include <errmsg.h>
#include <mysys_err.h>
#define MAX_SLAVE_RETRY_PAUSE 5
#define MAX_SLAVE_RETRY_PAUSE 5
bool
use_slave_mask
=
0
;
bool
use_slave_mask
=
0
;
...
@@ -3611,22 +3612,25 @@ after reconnect");
...
@@ -3611,22 +3612,25 @@ after reconnect");
if
(
event_len
==
packet_error
)
if
(
event_len
==
packet_error
)
{
{
uint
mysql_error_number
=
mysql_errno
(
mysql
);
uint
mysql_error_number
=
mysql_errno
(
mysql
);
if
(
mysql_error_number
==
CR_NET_PACKET_TOO_LARGE
)
switch
(
mysql_error_number
)
{
{
case
CR_NET_PACKET_TOO_LARGE
:
sql_print_error
(
"\
sql_print_error
(
"\
Log entry on master is longer than max_allowed_packet (%ld) on \
Log entry on master is longer than max_allowed_packet (%ld) on \
slave. If the entry is correct, restart the server with a higher value of \
slave. If the entry is correct, restart the server with a higher value of \
max_allowed_packet"
,
max_allowed_packet"
,
thd
->
variables
.
max_allowed_packet
);
thd
->
variables
.
max_allowed_packet
);
goto
err
;
goto
err
;
}
case
ER_MASTER_FATAL_ERROR_READING_BINLOG
:
if
(
mysql_error_number
==
ER_MASTER_FATAL_ERROR_READING_BINLOG
)
sql_print_error
(
ER
(
mysql_error_number
),
mysql_error_number
,
{
mysql_error
(
mysql
));
sql_print_error
(
ER
(
mysql_error_number
),
mysql_error_number
,
goto
err
;
mysql_error
(
mysql
));
case
EE_OUTOFMEMORY
:
goto
err
;
case
ER_OUTOFMEMORY
:
}
sql_print_error
(
"\
Stopping slave I/O thread due to out-of-memory error from master"
);
goto
err
;
}
mi
->
slave_running
=
MYSQL_SLAVE_RUN_NOT_CONNECT
;
mi
->
slave_running
=
MYSQL_SLAVE_RUN_NOT_CONNECT
;
thd
->
proc_info
=
"Waiting to reconnect after a failed master event read"
;
thd
->
proc_info
=
"Waiting to reconnect after a failed master event read"
;
#ifdef SIGNAL_WITH_VIO_CLOSE
#ifdef SIGNAL_WITH_VIO_CLOSE
...
...
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