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
2be2914a
Commit
2be2914a
authored
Mar 10, 2003
by
hf@deer.mysql.r18.ru
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Handling of log-error added in embedded server
parent
c5aadd28
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
0 deletions
+16
-0
BitKeeper/etc/logging_ok
BitKeeper/etc/logging_ok
+1
-0
libmysqld/lib_sql.cc
libmysqld/lib_sql.cc
+15
-0
No files found.
BitKeeper/etc/logging_ok
View file @
2be2914a
...
...
@@ -22,6 +22,7 @@ heikki@donna.mysql.fi
heikki@hundin.mysql.fi
heikki@rescue.
heikki@work.mysql.com
hf@deer.mysql.r18.ru
hf@genie.(none)
igor@hundin.mysql.fi
jani@dsl-jkl1657.dial.inet.fi
...
...
libmysqld/lib_sql.cc
View file @
2be2914a
...
...
@@ -403,6 +403,21 @@ int STDCALL mysql_server_init(int argc, char **argv, char **groups)
DBUG_PRINT
(
"info"
,(
"%s Ver %s for %s on %s
\n
"
,
my_progname
,
server_version
,
SYSTEM_TYPE
,
MACHINE_TYPE
));
if
(
opt_error_log
)
{
if
(
!
log_error_file_ptr
[
0
])
fn_format
(
log_error_file
,
glob_hostname
,
mysql_data_home
,
".err"
,
0
);
else
fn_format
(
log_error_file
,
log_error_file_ptr
,
mysql_data_home
,
".err"
,
MY_UNPACK_FILENAME
|
MY_SAFE_PATH
);
if
(
!
log_error_file
[
0
])
opt_error_log
=
1
;
// Too long file name
else
{
freopen
(
log_error_file
,
"a+"
,
stderr
);
}
}
/* These must be set early */
(
void
)
pthread_mutex_init
(
&
LOCK_mysql_create_db
,
MY_MUTEX_INIT_SLOW
);
...
...
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