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
79b3b220
Commit
79b3b220
authored
Jul 12, 2004
by
monty@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Don't close already closed files in vio (not critical)
parent
56d5e56c
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
2 deletions
+17
-2
mysys/my_init.c
mysys/my_init.c
+1
-0
sql/mysqld.cc
sql/mysqld.cc
+13
-0
sql/sql_parse.cc
sql/sql_parse.cc
+0
-1
vio/viosocket.c
vio/viosocket.c
+3
-1
No files found.
mysys/my_init.c
View file @
79b3b220
...
@@ -127,6 +127,7 @@ void my_end(int infoflag)
...
@@ -127,6 +127,7 @@ void my_end(int infoflag)
FILE
*
info_file
;
FILE
*
info_file
;
if
(
!
(
info_file
=
DBUG_FILE
))
if
(
!
(
info_file
=
DBUG_FILE
))
info_file
=
stderr
;
info_file
=
stderr
;
DBUG_PRINT
(
"info"
,(
"Shutting down"
));
if
(
infoflag
&
MY_CHECK_ERROR
||
info_file
!=
stderr
)
if
(
infoflag
&
MY_CHECK_ERROR
||
info_file
!=
stderr
)
{
/* Test if some file is left open */
{
/* Test if some file is left open */
if
(
my_file_opened
|
my_stream_opened
)
if
(
my_file_opened
|
my_stream_opened
)
...
...
sql/mysqld.cc
View file @
79b3b220
...
@@ -1301,6 +1301,19 @@ void yyerror(const char *s)
...
@@ -1301,6 +1301,19 @@ void yyerror(const char *s)
#ifndef EMBEDDED_LIBRARY
#ifndef EMBEDDED_LIBRARY
/*
Close a connection
SYNOPSIS
close_connection()
thd Thread handle
errcode Error code to print to console
lock 1 if we have have to lock LOCK_thread_count
NOTES
For the connection that is doing shutdown, this is called twice
*/
void
close_connection
(
THD
*
thd
,
uint
errcode
,
bool
lock
)
void
close_connection
(
THD
*
thd
,
uint
errcode
,
bool
lock
)
{
{
st_vio
*
vio
;
st_vio
*
vio
;
...
...
sql/sql_parse.cc
View file @
79b3b220
...
@@ -4562,7 +4562,6 @@ TABLE_LIST *st_select_lex::add_table_to_list(THD *thd,
...
@@ -4562,7 +4562,6 @@ TABLE_LIST *st_select_lex::add_table_to_list(THD *thd,
register
TABLE_LIST
*
ptr
;
register
TABLE_LIST
*
ptr
;
char
*
alias_str
;
char
*
alias_str
;
DBUG_ENTER
(
"add_table_to_list"
);
DBUG_ENTER
(
"add_table_to_list"
);
DBUG_PRINT
(
"enter"
,(
"lock_option: %d"
,
lock_type
));
if
(
!
table
)
if
(
!
table
)
DBUG_RETURN
(
0
);
// End of memory
DBUG_RETURN
(
0
);
// End of memory
...
...
vio/viosocket.c
View file @
79b3b220
...
@@ -203,9 +203,11 @@ int vio_close(Vio * vio)
...
@@ -203,9 +203,11 @@ int vio_close(Vio * vio)
#endif
#endif
r
=
CloseHandle
(
vio
->
hPipe
);
r
=
CloseHandle
(
vio
->
hPipe
);
}
}
else
if
(
vio
->
type
!=
VIO_CLOSED
)
else
#endif
/* __WIN__ */
#endif
/* __WIN__ */
if
(
vio
->
type
!=
VIO_CLOSED
)
{
{
DBUG_ASSERT
(
vio
->
sd
>=
0
);
if
(
shutdown
(
vio
->
sd
,
2
))
if
(
shutdown
(
vio
->
sd
,
2
))
r
=
-
1
;
r
=
-
1
;
if
(
closesocket
(
vio
->
sd
))
if
(
closesocket
(
vio
->
sd
))
...
...
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