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
9bc4c418
Commit
9bc4c418
authored
May 24, 2013
by
Sergei Golubchik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MDEV-4516 SELECT from I_S.QUERY_CACHE_INFO produces ER_UNKNOWN_ERROR when query cache size is 0
if qc->try_lock() fails, it's not an error
parent
cb246b20
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
1 deletion
+7
-1
mysql-test/suite/plugins/r/qc_info.result
mysql-test/suite/plugins/r/qc_info.result
+3
-0
mysql-test/suite/plugins/t/qc_info.test
mysql-test/suite/plugins/t/qc_info.test
+3
-0
plugin/qc_info/qc_info.cc
plugin/qc_info/qc_info.cc
+1
-1
No files found.
mysql-test/suite/plugins/r/qc_info.result
View file @
9bc4c418
...
...
@@ -12,4 +12,7 @@ test select * from t1 1 512
drop table t1;
select statement_schema, statement_text, result_blocks_count, result_blocks_size from information_schema.query_cache_info;
statement_schema statement_text result_blocks_count result_blocks_size
set global query_cache_size = 0;
select * from information_schema.query_cache_info;
STATEMENT_SCHEMA STATEMENT_TEXT RESULT_BLOCKS_COUNT RESULT_BLOCKS_SIZE RESULT_BLOCKS_SIZE_USED
set global query_cache_size= default;
mysql-test/suite/plugins/t/qc_info.test
View file @
9bc4c418
...
...
@@ -4,5 +4,8 @@ drop table t1;
# the query was invalidated
select
statement_schema
,
statement_text
,
result_blocks_count
,
result_blocks_size
from
information_schema
.
query_cache_info
;
set
global
query_cache_size
=
0
;
select
*
from
information_schema
.
query_cache_info
;
set
global
query_cache_size
=
default
;
plugin/qc_info/qc_info.cc
View file @
9bc4c418
...
...
@@ -83,7 +83,7 @@ static int qc_info_fill_table(THD *thd, TABLE_LIST *tables,
return
0
;
if
(
qc
->
try_lock
(
thd
))
return
status
;
return
0
;
// QC is or is being disabled
/* loop through all queries in the query cache */
for
(
uint
i
=
0
;
i
<
queries
->
records
;
i
++
)
...
...
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