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
3417aa25
Commit
3417aa25
authored
Dec 11, 2000
by
sasha@mysql.sashanet.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sql/sql_repl.cc
last fix in send_file() was wrong
parent
c8a91588
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
sql/sql_repl.cc
sql/sql_repl.cc
+3
-3
No files found.
sql/sql_repl.cc
View file @
3417aa25
...
...
@@ -34,7 +34,7 @@ static int send_file(THD *thd)
char
fname
[
FN_REFLEN
+
1
];
char
*
buf
;
const
char
*
errmsg
=
0
;
int
old_timeout
,
fname
_len
;
int
old_timeout
,
packet
_len
;
DBUG_ENTER
(
"send_file"
);
// the client might be slow loading the data, give him wait_timeout to do
...
...
@@ -51,13 +51,13 @@ static int send_file(THD *thd)
// we need net_flush here because the client will not know it needs to send
// us the file name until it has processed the load event entry
if
(
net_flush
(
net
)
||
(
fname
_len
=
my_net_read
(
net
))
==
packet_error
)
if
(
net_flush
(
net
)
||
(
packet
_len
=
my_net_read
(
net
))
==
packet_error
)
{
errmsg
=
"Failed reading file name"
;
goto
err
;
}
*
((
char
*
)
net
->
read_pos
+
1
+
fname
_len
)
=
0
;
// terminate with \0
*
((
char
*
)
net
->
read_pos
+
packet
_len
)
=
0
;
// terminate with \0
//for fn_format
fn_format
(
fname
,
(
char
*
)
net
->
read_pos
+
1
,
""
,
""
,
4
);
// this is needed to make replicate-ignore-db
...
...
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