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
fe543691
Commit
fe543691
authored
May 03, 2001
by
sasha@mysql.sashanet.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
better error message in replication when packet is too large
parent
c6ceb04b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
3 deletions
+19
-3
sql/mini_client.cc
sql/mini_client.cc
+8
-2
sql/slave.cc
sql/slave.cc
+11
-1
No files found.
sql/mini_client.cc
View file @
fe543691
...
@@ -330,8 +330,14 @@ mc_net_safe_read(MYSQL *mysql)
...
@@ -330,8 +330,14 @@ mc_net_safe_read(MYSQL *mysql)
if
(
errno
!=
EINTR
)
if
(
errno
!=
EINTR
)
{
{
mc_end_server
(
mysql
);
mc_end_server
(
mysql
);
net
->
last_errno
=
CR_SERVER_LOST
;
if
(
net
->
last_errno
!=
ER_NET_PACKET_TOO_LARGE
)
strmov
(
net
->
last_error
,
ER
(
net
->
last_errno
));
{
net
->
last_errno
=
CR_SERVER_LOST
;
strmov
(
net
->
last_error
,
ER
(
net
->
last_errno
));
}
else
strmov
(
net
->
last_error
,
"Packet too large - increase \
max_allowed_packet on this server"
);
}
}
return
(
packet_error
);
return
(
packet_error
);
}
}
...
...
sql/slave.cc
View file @
fe543691
...
@@ -1293,9 +1293,19 @@ try again, log '%s' at postion %s", RPL_LOG_NAME,
...
@@ -1293,9 +1293,19 @@ try again, log '%s' at postion %s", RPL_LOG_NAME,
sql_print_error
(
"Slave thread killed while reading event"
);
sql_print_error
(
"Slave thread killed while reading event"
);
goto
err
;
goto
err
;
}
}
if
(
event_len
==
packet_error
)
if
(
event_len
==
packet_error
)
{
{
if
(
mc_mysql_errno
(
mysql
)
==
ER_NET_PACKET_TOO_LARGE
)
{
sql_print_error
(
"Log entry on master is longer than \
max_allowed_packet on slave. Slave thread will be aborted. If the entry is \
really supposed to be that long, restart the server with a higher value of \
max_allowed_packet. The current value is %ld"
,
max_allowed_packet
);
goto
err
;
}
thd
->
proc_info
=
"Waiting to reconnect after a failed read"
;
thd
->
proc_info
=
"Waiting to reconnect after a failed read"
;
if
(
mysql
->
net
.
vio
)
if
(
mysql
->
net
.
vio
)
vio_close
(
mysql
->
net
.
vio
);
vio_close
(
mysql
->
net
.
vio
);
...
...
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