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
39ef54fd
Commit
39ef54fd
authored
Aug 04, 2005
by
hf@deer.(none)
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix for bug #12177 (errorlog file isn't closed)
4.1 version of the patch
parent
e1fded43
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
1 deletion
+10
-1
libmysql/libmysql.c
libmysql/libmysql.c
+7
-0
sql/mysql_priv.h
sql/mysql_priv.h
+1
-0
sql/mysqld.cc
sql/mysqld.cc
+2
-1
No files found.
libmysql/libmysql.c
View file @
39ef54fd
...
...
@@ -188,6 +188,13 @@ void STDCALL mysql_server_end()
mysql_thread_end
();
free_charsets
();
mysql_client_init
=
org_my_init_done
=
0
;
#ifdef EMBEDDED_SERVER
if
(
stderror_file
)
{
fclose
(
stderror_file
);
stderror_file
=
0
;
}
#endif
}
static
MYSQL_PARAMETERS
mysql_internal_parameters
=
...
...
sql/mysql_priv.h
View file @
39ef54fd
...
...
@@ -941,6 +941,7 @@ extern char *default_tz_name;
extern
MYSQL_LOG
mysql_log
,
mysql_update_log
,
mysql_slow_log
,
mysql_bin_log
;
extern
FILE
*
bootstrap_file
;
extern
FILE
*
stderror_file
;
extern
pthread_key
(
MEM_ROOT
**
,
THR_MALLOC
);
extern
pthread_mutex_t
LOCK_mysql_create_db
,
LOCK_Acl
,
LOCK_open
,
LOCK_thread_count
,
LOCK_mapped_file
,
LOCK_user_locks
,
LOCK_status
,
...
...
sql/mysqld.cc
View file @
39ef54fd
...
...
@@ -382,6 +382,7 @@ Le_creator le_creator;
FILE
*
bootstrap_file
;
FILE
*
stderror_file
=
0
;
I_List
<
i_string_pair
>
replicate_rewrite_db
;
I_List
<
i_string
>
replicate_do_db
,
replicate_ignore_db
;
...
...
@@ -2767,7 +2768,7 @@ server.");
#ifndef EMBEDDED_LIBRARY
if
(
freopen
(
log_error_file
,
"a+"
,
stdout
))
#endif
freopen
(
log_error_file
,
"a+"
,
stderr
);
stderror_file
=
freopen
(
log_error_file
,
"a+"
,
stderr
);
}
}
...
...
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