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
8097ba20
Commit
8097ba20
authored
Jun 21, 2006
by
gluh@eagle.intranet.mysql.r18.ru
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
after merge fixes
parent
154961b2
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
9 deletions
+20
-9
mysql-test/r/partition_error.result
mysql-test/r/partition_error.result
+2
-2
sql/log.cc
sql/log.cc
+1
-1
sql/log.h
sql/log.h
+4
-4
sql/set_var.cc
sql/set_var.cc
+13
-2
No files found.
mysql-test/r/partition_error.result
View file @
8097ba20
...
...
@@ -8,7 +8,7 @@ show create table t1;
Table Create Table
t1 CREATE TABLE `t1` (
`a` int(11) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1
PARTITION BY KEY (a)
) ENGINE=MyISAM DEFAULT CHARSET=latin1
/*!50100 PARTITION BY KEY (a) */
drop table t1;
create table t1 (a int)
engine = innodb
...
...
@@ -21,7 +21,7 @@ show create table t1;
Table Create Table
t1 CREATE TABLE `t1` (
`a` int(11) DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1
PARTITION BY LIST (a) (PARTITION p0 VALUES IN (0) ENGINE = InnoDB)
) ENGINE=InnoDB DEFAULT CHARSET=latin1
/*!50100 PARTITION BY LIST (a) (PARTITION p0 VALUES IN (0) ENGINE = InnoDB) */
drop table t1;
partition by list (a)
partitions 3
...
...
sql/log.cc
View file @
8097ba20
...
...
@@ -936,7 +936,7 @@ bool LOGGER::activate_log_handler(THD* thd, uint log_type)
if
((
res
=
reopen_log_table
(
log_type
)))
goto
err
;
file_log_handler
->
get_mysql_slow_log
()
->
open_
query
_log
(
sys_var_slow_log_path
.
value
);
open_
slow
_log
(
sys_var_slow_log_path
.
value
);
init_slow_log
(
log_output_options
);
opt_slow_log
=
TRUE
;
}
...
...
sql/log.h
View file @
8097ba20
...
...
@@ -467,8 +467,8 @@ public:
CHARSET_INFO
*
client_cs
);
void
flush
();
void
init_pthread_objects
();
MYSQL_LOG
*
get_mysql_slow_log
()
{
return
&
mysql_slow_log
;
}
MYSQL_LOG
*
get_mysql_log
()
{
return
&
mysql_log
;
}
MYSQL_
QUERY_
LOG
*
get_mysql_slow_log
()
{
return
&
mysql_slow_log
;
}
MYSQL_
QUERY_
LOG
*
get_mysql_log
()
{
return
&
mysql_log
;
}
};
...
...
@@ -543,13 +543,13 @@ public:
void
init_general_log
(
uint
general_log_printer
);
void
deactivate_log_handler
(
THD
*
thd
,
uint
log_type
);
bool
activate_log_handler
(
THD
*
thd
,
uint
log_type
);
MYSQL_LOG
*
get_slow_log_file_handler
()
MYSQL_
QUERY_
LOG
*
get_slow_log_file_handler
()
{
if
(
file_log_handler
)
return
file_log_handler
->
get_mysql_slow_log
();
return
NULL
;
}
MYSQL_LOG
*
get_log_file_handler
()
MYSQL_
QUERY_
LOG
*
get_log_file_handler
()
{
if
(
file_log_handler
)
return
file_log_handler
->
get_mysql_log
();
...
...
sql/set_var.cc
View file @
8097ba20
...
...
@@ -2602,7 +2602,7 @@ bool update_sys_var_str_path(THD *thd, sys_var_str *var_str,
set_var
*
var
,
const
char
*
log_ext
,
bool
log_state
,
uint
log_type
)
{
MYSQL_LOG
*
file_log
;
MYSQL_
QUERY_
LOG
*
file_log
;
char
buff
[
FN_REFLEN
];
char
*
res
=
0
,
*
old_value
=
(
char
*
)(
var
?
var
->
value
->
str_value
.
ptr
()
:
0
);
bool
result
=
0
;
...
...
@@ -2640,7 +2640,18 @@ bool update_sys_var_str_path(THD *thd, sys_var_str *var_str,
var_str
->
value_length
=
str_length
;
my_free
(
old_value
,
MYF
(
MY_ALLOW_ZERO_PTR
));
if
(
file_log
&&
log_state
)
file_log
->
open_query_log
(
sys_var_general_log_path
.
value
);
{
switch
(
log_type
)
{
case
QUERY_LOG_SLOW
:
file_log
->
open_slow_log
(
sys_var_general_log_path
.
value
);
break
;
case
QUERY_LOG_GENERAL
:
file_log
->
open_query_log
(
sys_var_general_log_path
.
value
);
break
;
default:
DBUG_ASSERT
(
0
);
}
}
logger
.
unlock
();
pthread_mutex_unlock
(
&
LOCK_global_system_variables
);
...
...
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