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
965fd06a
Commit
965fd06a
authored
Mar 04, 2006
by
petr@mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge pchardin@bk-internal.mysql.com:/home/bk/mysql-5.1-new
into mysql.com:/home/cps/mysql/devel/5.1-cleanup
parents
653596ce
0a861ec8
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
23 deletions
+11
-23
sql/log.cc
sql/log.cc
+2
-1
sql/mysql_priv.h
sql/mysql_priv.h
+1
-2
sql/mysqld.cc
sql/mysqld.cc
+2
-3
sql/set_var.cc
sql/set_var.cc
+6
-17
No files found.
sql/log.cc
View file @
965fd06a
...
@@ -714,7 +714,8 @@ bool LOGGER::slow_log_print(THD *thd, const char *query, uint query_length,
...
@@ -714,7 +714,8 @@ bool LOGGER::slow_log_print(THD *thd, const char *query, uint query_length,
{
{
current_time
=
time
(
NULL
);
current_time
=
time
(
NULL
);
if
(
!
(
thd
->
options
&
OPTION_UPDATE_LOG
))
/* do not log slow queries from replication threads */
if
(
thd
->
slave_thread
)
return
0
;
return
0
;
lock
();
lock
();
...
...
sql/mysql_priv.h
View file @
965fd06a
...
@@ -268,7 +268,7 @@ extern CHARSET_INFO *national_charset_info, *table_alias_charset;
...
@@ -268,7 +268,7 @@ extern CHARSET_INFO *national_charset_info, *table_alias_charset;
#define OPTION_BIG_TABLES (LL(1) << 8) // THD, user
#define OPTION_BIG_TABLES (LL(1) << 8) // THD, user
#define OPTION_BIG_SELECTS (LL(1) << 9) // THD, user
#define OPTION_BIG_SELECTS (LL(1) << 9) // THD, user
#define OPTION_LOG_OFF (LL(1) << 10) // THD, user
#define OPTION_LOG_OFF (LL(1) << 10) // THD, user
#define OPTION_
UPDATE_LOG (LL(1) << 11) // THD, user, unused
#define OPTION_
QUOTE_SHOW_CREATE (LL(1) << 11) // THD, user
#define TMP_TABLE_ALL_COLUMNS (LL(1) << 12) // SELECT, intern
#define TMP_TABLE_ALL_COLUMNS (LL(1) << 12) // SELECT, intern
#define OPTION_WARNINGS (LL(1) << 13) // THD, user
#define OPTION_WARNINGS (LL(1) << 13) // THD, user
#define OPTION_AUTO_IS_NULL (LL(1) << 14) // THD, user, binlog
#define OPTION_AUTO_IS_NULL (LL(1) << 14) // THD, user, binlog
...
@@ -280,7 +280,6 @@ extern CHARSET_INFO *national_charset_info, *table_alias_charset;
...
@@ -280,7 +280,6 @@ extern CHARSET_INFO *national_charset_info, *table_alias_charset;
#define OPTION_BEGIN (LL(1) << 20) // THD, intern
#define OPTION_BEGIN (LL(1) << 20) // THD, intern
#define OPTION_TABLE_LOCK (LL(1) << 21) // THD, intern
#define OPTION_TABLE_LOCK (LL(1) << 21) // THD, intern
#define OPTION_QUICK (LL(1) << 22) // SELECT (for DELETE)
#define OPTION_QUICK (LL(1) << 22) // SELECT (for DELETE)
#define OPTION_QUOTE_SHOW_CREATE (LL(1) << 23) // THD, user
/* Thr following is used to detect a conflict with DISTINCT
/* Thr following is used to detect a conflict with DISTINCT
in the user query has requested */
in the user query has requested */
...
...
sql/mysqld.cc
View file @
965fd06a
...
@@ -6982,9 +6982,8 @@ static void mysql_init_variables(void)
...
@@ -6982,9 +6982,8 @@ static void mysql_init_variables(void)
log_error_file_ptr
=
log_error_file
;
log_error_file_ptr
=
log_error_file
;
language_ptr
=
language
;
language_ptr
=
language
;
mysql_data_home
=
mysql_real_data_home
;
mysql_data_home
=
mysql_real_data_home
;
thd_startup_options
=
(
OPTION_UPDATE_LOG
|
OPTION_AUTO_IS_NULL
|
thd_startup_options
=
(
OPTION_AUTO_IS_NULL
|
OPTION_BIN_LOG
|
OPTION_BIN_LOG
|
OPTION_QUOTE_SHOW_CREATE
|
OPTION_QUOTE_SHOW_CREATE
|
OPTION_SQL_NOTES
);
OPTION_SQL_NOTES
);
protocol_version
=
PROTOCOL_VERSION
;
protocol_version
=
PROTOCOL_VERSION
;
what_to_log
=
~
(
1L
<<
(
uint
)
COM_TIME
);
what_to_log
=
~
(
1L
<<
(
uint
)
COM_TIME
);
refresh_version
=
flush_version
=
1L
;
/* Increments on each reload */
refresh_version
=
flush_version
=
1L
;
/* Increments on each reload */
...
...
sql/set_var.cc
View file @
965fd06a
...
@@ -22,9 +22,6 @@
...
@@ -22,9 +22,6 @@
- Use one of the 'sys_var... classes from set_var.h or write a specific
- Use one of the 'sys_var... classes from set_var.h or write a specific
one for the variable type.
one for the variable type.
- Define it in the 'variable definition list' in this file.
- Define it in the 'variable definition list' in this file.
- If the variable should be changeable or one should be able to access it
with @@variable_name, it should be added to the 'list of all variables'
list (sys_variables) in this file.
- If the variable is thread specific, add it to 'system_variables' struct.
- If the variable is thread specific, add it to 'system_variables' struct.
If not, add it to mysqld.cc and an declaration in 'mysql_priv.h'
If not, add it to mysqld.cc and an declaration in 'mysql_priv.h'
- If the variable should be changed from the command line, add a definition
- If the variable should be changed from the command line, add a definition
...
@@ -140,7 +137,6 @@ static bool set_option_autocommit(THD *thd, set_var *var);
...
@@ -140,7 +137,6 @@ static bool set_option_autocommit(THD *thd, set_var *var);
static
int
check_log_update
(
THD
*
thd
,
set_var
*
var
);
static
int
check_log_update
(
THD
*
thd
,
set_var
*
var
);
static
bool
set_log_update
(
THD
*
thd
,
set_var
*
var
);
static
bool
set_log_update
(
THD
*
thd
,
set_var
*
var
);
static
int
check_pseudo_thread_id
(
THD
*
thd
,
set_var
*
var
);
static
int
check_pseudo_thread_id
(
THD
*
thd
,
set_var
*
var
);
static
bool
set_log_bin
(
THD
*
thd
,
set_var
*
var
);
void
fix_binlog_format_after_update
(
THD
*
thd
,
enum_var_type
type
);
void
fix_binlog_format_after_update
(
THD
*
thd
,
enum_var_type
type
);
static
void
fix_low_priority_updates
(
THD
*
thd
,
enum_var_type
type
);
static
void
fix_low_priority_updates
(
THD
*
thd
,
enum_var_type
type
);
static
int
check_tx_isolation
(
THD
*
thd
,
set_var
*
var
);
static
int
check_tx_isolation
(
THD
*
thd
,
set_var
*
var
);
...
@@ -170,7 +166,10 @@ static byte *get_warning_count(THD *thd);
...
@@ -170,7 +166,10 @@ static byte *get_warning_count(THD *thd);
Variable definition list
Variable definition list
These are variables that can be set from the command line, in
These are variables that can be set from the command line, in
alphabetic order
alphabetic order.
The variables are linked into the list. A variable is added to
it in the constructor (see sys_var class for details).
*/
*/
sys_var
*
sys_var
::
first
=
NULL
;
sys_var
*
sys_var
::
first
=
NULL
;
...
@@ -557,10 +556,10 @@ static sys_var_thd_bit sys_log_off("sql_log_off", 0,
...
@@ -557,10 +556,10 @@ static sys_var_thd_bit sys_log_off("sql_log_off", 0,
static
sys_var_thd_bit
sys_log_update
(
"sql_log_update"
,
static
sys_var_thd_bit
sys_log_update
(
"sql_log_update"
,
check_log_update
,
check_log_update
,
set_log_update
,
set_log_update
,
OPTION_
UPDATE
_LOG
);
OPTION_
BIN
_LOG
);
static
sys_var_thd_bit
sys_log_binlog
(
"sql_log_bin"
,
static
sys_var_thd_bit
sys_log_binlog
(
"sql_log_bin"
,
check_log_update
,
check_log_update
,
set_
log_bin
,
set_
option_bit
,
OPTION_BIN_LOG
);
OPTION_BIN_LOG
);
static
sys_var_thd_bit
sys_sql_warnings
(
"sql_warnings"
,
0
,
static
sys_var_thd_bit
sys_sql_warnings
(
"sql_warnings"
,
0
,
set_option_bit
,
set_option_bit
,
...
@@ -2778,8 +2777,6 @@ static bool set_log_update(THD *thd, set_var *var)
...
@@ -2778,8 +2777,6 @@ static bool set_log_update(THD *thd, set_var *var)
if
(
opt_sql_bin_update
)
if
(
opt_sql_bin_update
)
{
{
((
sys_var_thd_bit
*
)
var
->
var
)
->
bit_flag
|=
(
OPTION_BIN_LOG
|
OPTION_UPDATE_LOG
);
push_warning
(
thd
,
MYSQL_ERROR
::
WARN_LEVEL_NOTE
,
push_warning
(
thd
,
MYSQL_ERROR
::
WARN_LEVEL_NOTE
,
ER_UPDATE_LOG_DEPRECATED_TRANSLATED
,
ER_UPDATE_LOG_DEPRECATED_TRANSLATED
,
ER
(
ER_UPDATE_LOG_DEPRECATED_TRANSLATED
));
ER
(
ER_UPDATE_LOG_DEPRECATED_TRANSLATED
));
...
@@ -2792,14 +2789,6 @@ static bool set_log_update(THD *thd, set_var *var)
...
@@ -2792,14 +2789,6 @@ static bool set_log_update(THD *thd, set_var *var)
return
0
;
return
0
;
}
}
static
bool
set_log_bin
(
THD
*
thd
,
set_var
*
var
)
{
if
(
opt_sql_bin_update
)
((
sys_var_thd_bit
*
)
var
->
var
)
->
bit_flag
|=
(
OPTION_BIN_LOG
|
OPTION_UPDATE_LOG
);
set_option_bit
(
thd
,
var
);
return
0
;
}
static
int
check_pseudo_thread_id
(
THD
*
thd
,
set_var
*
var
)
static
int
check_pseudo_thread_id
(
THD
*
thd
,
set_var
*
var
)
{
{
...
...
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