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
f2a9896c
Commit
f2a9896c
authored
Jun 02, 2010
by
He Zhenxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Post fix for bug#52748
parent
5725d230
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
plugin/semisync/semisync_master.cc
plugin/semisync/semisync_master.cc
+2
-1
No files found.
plugin/semisync/semisync_master.cc
View file @
f2a9896c
...
@@ -1126,12 +1126,13 @@ int ReplSemiSyncMaster::readSlaveReply(NET *net, uint32 server_id,
...
@@ -1126,12 +1126,13 @@ int ReplSemiSyncMaster::readSlaveReply(NET *net, uint32 server_id,
log_file_pos
=
uint8korr
(
packet
+
REPLY_BINLOG_POS_OFFSET
);
log_file_pos
=
uint8korr
(
packet
+
REPLY_BINLOG_POS_OFFSET
);
log_file_len
=
packet_len
-
REPLY_BINLOG_NAME_OFFSET
;
log_file_len
=
packet_len
-
REPLY_BINLOG_NAME_OFFSET
;
if
(
log_file_len
>
FN_REFLEN
)
if
(
log_file_len
>
=
FN_REFLEN
)
{
{
sql_print_error
(
"Read semi-sync reply binlog file length too large"
);
sql_print_error
(
"Read semi-sync reply binlog file length too large"
);
goto
l_end
;
goto
l_end
;
}
}
strncpy
(
log_file_name
,
(
const
char
*
)
packet
+
REPLY_BINLOG_NAME_OFFSET
,
log_file_len
);
strncpy
(
log_file_name
,
(
const
char
*
)
packet
+
REPLY_BINLOG_NAME_OFFSET
,
log_file_len
);
log_file_name
[
log_file_len
]
=
0
;
if
(
trc_level
&
kTraceDetail
)
if
(
trc_level
&
kTraceDetail
)
sql_print_information
(
"%s: Got reply (%s, %lu)"
,
sql_print_information
(
"%s: Got reply (%s, %lu)"
,
...
...
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