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
44acdaac
Commit
44acdaac
authored
May 04, 2006
by
tomas@poseidon.ndb.mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge tulin@bk-internal.mysql.com:/home/bk/mysql-5.1-new
into poseidon.ndb.mysql.com:/home/tomas/mysql-5.1-new-ndb
parents
f6ede396
1a5c828c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
44 additions
and
43 deletions
+44
-43
sql/mysqld.cc
sql/mysqld.cc
+44
-43
No files found.
sql/mysqld.cc
View file @
44acdaac
...
@@ -3012,49 +3012,7 @@ static int init_server_components()
...
@@ -3012,49 +3012,7 @@ static int init_server_components()
unireg_abort
(
1
);
unireg_abort
(
1
);
}
}
/* We have to initialize the storage engines before CSV logging */
/* need to configure logging before initializing storage engines */
if
(
ha_init
())
{
sql_print_error
(
"Can't init databases"
);
unireg_abort
(
1
);
}
#ifdef WITH_CSV_STORAGE_ENGINE
if
(
opt_bootstrap
)
log_output_options
=
LOG_FILE
;
else
logger
.
init_log_tables
();
if
(
log_output_options
&
LOG_NONE
)
{
/*
Issue a warining if there were specified additional options to the
log-output along with NONE. Probably this wasn't what user wanted.
*/
if
((
log_output_options
&
LOG_NONE
)
&&
(
log_output_options
&
~
LOG_NONE
))
sql_print_warning
(
"There were other values specified to "
"log-output besides NONE. Disabling slow "
"and general logs anyway."
);
logger
.
set_handlers
(
LOG_FILE
,
LOG_NONE
,
LOG_NONE
);
}
else
{
/* fall back to the log files if tables are not present */
if
(
have_csv_db
==
SHOW_OPTION_NO
)
{
sql_print_error
(
"CSV engine is not present, falling back to the "
"log files"
);
log_output_options
=
log_output_options
&
~
LOG_TABLE
|
LOG_FILE
;
}
logger
.
set_handlers
(
LOG_FILE
,
opt_slow_log
?
log_output_options
:
LOG_NONE
,
opt_log
?
log_output_options
:
LOG_NONE
);
}
#else
logger
.
set_handlers
(
LOG_FILE
,
opt_slow_log
?
LOG_FILE
:
LOG_NONE
,
opt_log
?
LOG_FILE
:
LOG_NONE
);
#endif
if
(
opt_update_log
)
if
(
opt_update_log
)
{
{
/*
/*
...
@@ -3182,6 +3140,49 @@ server.");
...
@@ -3182,6 +3140,49 @@ server.");
using_update_log
=
1
;
using_update_log
=
1
;
}
}
/* We have to initialize the storage engines before CSV logging */
if
(
ha_init
())
{
sql_print_error
(
"Can't init databases"
);
unireg_abort
(
1
);
}
#ifdef WITH_CSV_STORAGE_ENGINE
if
(
opt_bootstrap
)
log_output_options
=
LOG_FILE
;
else
logger
.
init_log_tables
();
if
(
log_output_options
&
LOG_NONE
)
{
/*
Issue a warining if there were specified additional options to the
log-output along with NONE. Probably this wasn't what user wanted.
*/
if
((
log_output_options
&
LOG_NONE
)
&&
(
log_output_options
&
~
LOG_NONE
))
sql_print_warning
(
"There were other values specified to "
"log-output besides NONE. Disabling slow "
"and general logs anyway."
);
logger
.
set_handlers
(
LOG_FILE
,
LOG_NONE
,
LOG_NONE
);
}
else
{
/* fall back to the log files if tables are not present */
if
(
have_csv_db
==
SHOW_OPTION_NO
)
{
sql_print_error
(
"CSV engine is not present, falling back to the "
"log files"
);
log_output_options
=
log_output_options
&
~
LOG_TABLE
|
LOG_FILE
;
}
logger
.
set_handlers
(
LOG_FILE
,
opt_slow_log
?
log_output_options
:
LOG_NONE
,
opt_log
?
log_output_options
:
LOG_NONE
);
}
#else
logger
.
set_handlers
(
LOG_FILE
,
opt_slow_log
?
LOG_FILE
:
LOG_NONE
,
opt_log
?
LOG_FILE
:
LOG_NONE
);
#endif
/*
/*
Check that the default storage engine is actually available.
Check that the default storage engine is actually available.
*/
*/
...
...
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