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
498e1c6d
Commit
498e1c6d
authored
Oct 08, 2003
by
monty@mishka.mysql.fi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed memory leak in send_file
parent
74077c79
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
10 deletions
+3
-10
BitKeeper/etc/logging_ok
BitKeeper/etc/logging_ok
+1
-0
mysql-test/t/myisam.test
mysql-test/t/myisam.test
+1
-2
sql/sql_repl.cc
sql/sql_repl.cc
+1
-8
No files found.
BitKeeper/etc/logging_ok
View file @
498e1c6d
...
...
@@ -22,6 +22,7 @@ monty@bitch.mysql.fi
monty@donna.mysql.fi
monty@hundin.mysql.fi
monty@mashka.mysql.fi
monty@mishka.mysql.fi
monty@narttu.
monty@narttu.mysql.fi
monty@tik.
...
...
mysql-test/t/myisam.test
View file @
498e1c6d
...
...
@@ -284,5 +284,4 @@ insert into t1 values (1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
1
,
"Sergei"
);
drop
table
if
exists
t1
;
drop
table
t1
;
sql/sql_repl.cc
View file @
498e1c6d
...
...
@@ -66,10 +66,10 @@ static int send_file(THD *thd)
NET
*
net
=
&
thd
->
net
;
int
fd
=
-
1
,
bytes
,
error
=
1
;
char
fname
[
FN_REFLEN
+
1
];
char
*
buf
;
const
char
*
errmsg
=
0
;
int
old_timeout
;
uint
packet_len
;
char
buf
[
IO_SIZE
];
// It's safe to alloc this
DBUG_ENTER
(
"send_file"
);
// the client might be slow loading the data, give him wait_timeout to do
...
...
@@ -77,13 +77,6 @@ static int send_file(THD *thd)
old_timeout
=
thd
->
net
.
timeout
;
thd
->
net
.
timeout
=
thd
->
inactive_timeout
;
// spare the stack
if
(
!
(
buf
=
alloc_root
(
&
thd
->
mem_root
,
IO_SIZE
)))
{
errmsg
=
"Out of memory"
;
goto
err
;
}
// 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
)
||
(
packet_len
=
my_net_read
(
net
))
==
packet_error
)
...
...
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