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
58aaae6f
Commit
58aaae6f
authored
7 years ago
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ensure that filename in COM_BINLOG_DUMP isn't too long
parent
172e3a1b
Branches unavailable
Tags unavailable
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
sql/sql_parse.cc
sql/sql_parse.cc
+6
-3
No files found.
sql/sql_parse.cc
View file @
58aaae6f
...
...
@@ -1271,9 +1271,12 @@ bool dispatch_command(enum enum_server_command command, THD *thd,
kill_zombie_dump_threads
(
slave_server_id
);
thd
->
server_id
=
slave_server_id
;
general_log_print
(
thd
,
command
,
"Log: '%s' Pos: %ld"
,
packet
+
10
,
(
long
)
pos
);
mysql_binlog_send
(
thd
,
thd
->
strdup
(
packet
+
10
),
(
my_off_t
)
pos
,
flags
);
const
char
*
name
=
packet
+
10
;
size_t
nlen
=
strlen
(
name
);
general_log_print
(
thd
,
command
,
"Log: '%s' Pos: %lu"
,
name
,
pos
);
if
(
nlen
<
FN_REFLEN
)
mysql_binlog_send
(
thd
,
thd
->
strmake
(
name
,
nlen
),
(
my_off_t
)
pos
,
flags
);
unregister_slave
(
thd
,
1
,
1
);
/* fake COM_QUIT -- if we get here, the thread needs to terminate */
error
=
TRUE
;
...
...
This diff is collapsed.
Click to expand it.
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