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
24728104
Commit
24728104
authored
Mar 07, 2005
by
serg@serg.mylan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed crash if max_connections is exceeded. BUG#8996
parent
35f0c372
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
sql/mysqld.cc
sql/mysqld.cc
+1
-0
sql/protocol.cc
sql/protocol.cc
+3
-2
No files found.
sql/mysqld.cc
View file @
24728104
...
...
@@ -1432,6 +1432,7 @@ void close_connection(THD *thd, uint errcode, bool lock)
errcode
?
ER
(
errcode
)
:
""
));
if
(
lock
)
(
void
)
pthread_mutex_lock
(
&
LOCK_thread_count
);
thd
->
killed
=
1
;
if
((
vio
=
thd
->
net
.
vio
)
!=
0
)
{
if
(
errcode
)
...
...
sql/protocol.cc
View file @
24728104
...
...
@@ -122,8 +122,9 @@ void send_error(THD *thd, uint sql_errno, const char *err)
}
VOID
(
net_write_command
(
net
,(
uchar
)
255
,
""
,
0
,
(
char
*
)
err
,
length
));
#endif
/* EMBEDDED_LIBRARY*/
push_warning
(
thd
,
MYSQL_ERROR
::
WARN_LEVEL_ERROR
,
sql_errno
,
orig_err
?
orig_err
:
ER
(
sql_errno
));
if
(
!
thd
->
killed
)
push_warning
(
thd
,
MYSQL_ERROR
::
WARN_LEVEL_ERROR
,
sql_errno
,
orig_err
?
orig_err
:
ER
(
sql_errno
));
thd
->
is_fatal_error
=
0
;
// Error message is given
thd
->
net
.
report_error
=
0
;
...
...
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