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
ede22768
Commit
ede22768
authored
Jul 09, 2007
by
ramil/ram@ramil.myoffice.izhnet.ru
Browse files
Options
Browse Files
Download
Plain Diff
Merge mysql.com:/home/ram/work/b28808/b28808.5.0
into mysql.com:/home/ram/work/b28808/b28808.5.1
parents
f38158f4
fca06fbc
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
5 deletions
+19
-5
mysql-test/t/show_check.test
mysql-test/t/show_check.test
+17
-1
sql/mysqld.cc
sql/mysqld.cc
+0
-2
sql/sql_parse.cc
sql/sql_parse.cc
+1
-1
sql/unireg.h
sql/unireg.h
+1
-1
No files found.
mysql-test/t/show_check.test
View file @
ede22768
...
@@ -761,7 +761,23 @@ DROP VIEW v1;
...
@@ -761,7 +761,23 @@ DROP VIEW v1;
DROP
PROCEDURE
p1
;
DROP
PROCEDURE
p1
;
DROP
FUNCTION
f1
;
DROP
FUNCTION
f1
;
--
echo
End
of
5.0
tests
.
#
# Bug #28808: log_queries_not_using_indexes variable dynamic change is ignored
#
flush
status
;
show
variables
like
"log_queries_not_using_indexes"
;
select
1
from
information_schema
.
tables
limit
1
;
show
status
like
'slow_queries'
;
set
global
log_queries_not_using_indexes
=
OFF
;
show
variables
like
"log_queries_not_using_indexes"
;
select
1
from
information_schema
.
tables
limit
1
;
show
status
like
'slow_queries'
;
set
global
log_queries_not_using_indexes
=
ON
;
show
variables
like
"log_queries_not_using_indexes"
;
select
1
from
information_schema
.
tables
limit
1
;
show
status
like
'slow_queries'
;
--
echo
End
of
5.0
tests
--
disable_result_log
--
disable_result_log
SHOW
AUTHORS
;
SHOW
AUTHORS
;
...
...
sql/mysqld.cc
View file @
ede22768
...
@@ -7820,8 +7820,6 @@ static void get_options(int *argc,char **argv)
...
@@ -7820,8 +7820,6 @@ static void get_options(int *argc,char **argv)
if
(
opt_short_log_format
)
if
(
opt_short_log_format
)
opt_specialflag
|=
SPECIAL_SHORT_LOG_FORMAT
;
opt_specialflag
|=
SPECIAL_SHORT_LOG_FORMAT
;
if
(
opt_log_queries_not_using_indexes
)
opt_specialflag
|=
SPECIAL_LOG_QUERIES_NOT_USING_INDEXES
;
if
(
init_global_datetime_format
(
MYSQL_TIMESTAMP_DATE
,
if
(
init_global_datetime_format
(
MYSQL_TIMESTAMP_DATE
,
&
global_system_variables
.
date_format
)
||
&
global_system_variables
.
date_format
)
||
...
...
sql/sql_parse.cc
View file @
ede22768
...
@@ -1323,7 +1323,7 @@ void log_slow_statement(THD *thd)
...
@@ -1323,7 +1323,7 @@ void log_slow_statement(THD *thd)
thd
->
variables
.
long_query_time
||
thd
->
variables
.
long_query_time
||
((
thd
->
server_status
&
((
thd
->
server_status
&
(
SERVER_QUERY_NO_INDEX_USED
|
SERVER_QUERY_NO_GOOD_INDEX_USED
))
&&
(
SERVER_QUERY_NO_INDEX_USED
|
SERVER_QUERY_NO_GOOD_INDEX_USED
))
&&
(
specialflag
&
SPECIAL_LOG_QUERIES_NOT_USING_INDEXES
)
))
opt_log_queries_not_using_indexes
))
{
{
thd
->
status_var
.
long_query_count
++
;
thd
->
status_var
.
long_query_count
++
;
slow_log_print
(
thd
,
thd
->
query
,
thd
->
query_length
,
start_of_query
);
slow_log_print
(
thd
,
thd
->
query
,
thd
->
query_length
,
start_of_query
);
...
...
sql/unireg.h
View file @
ede22768
...
@@ -124,7 +124,7 @@
...
@@ -124,7 +124,7 @@
#define SPECIAL_NO_HOST_CACHE 512
/* Don't cache hosts */
#define SPECIAL_NO_HOST_CACHE 512
/* Don't cache hosts */
#define SPECIAL_SHORT_LOG_FORMAT 1024
#define SPECIAL_SHORT_LOG_FORMAT 1024
#define SPECIAL_SAFE_MODE 2048
#define SPECIAL_SAFE_MODE 2048
#define SPECIAL_LOG_QUERIES_NOT_USING_INDEXES 4096
/*
Log q not using indexes
*/
#define SPECIAL_LOG_QUERIES_NOT_USING_INDEXES 4096
/*
Obsolete
*/
/* Extern defines */
/* Extern defines */
#define store_record(A,B) bmove_align((A)->B,(A)->record[0],(size_t) (A)->s->reclength)
#define store_record(A,B) bmove_align((A)->B,(A)->record[0],(size_t) (A)->s->reclength)
...
...
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