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
43a6c780
Commit
43a6c780
authored
Jul 18, 2007
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Post-merge fixes
Fixed debug code of new query cache implementation.
parent
8bbaf6ad
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
sql/sql_cache.cc
sql/sql_cache.cc
+10
-2
No files found.
sql/sql_cache.cc
View file @
43a6c780
...
...
@@ -878,10 +878,14 @@ ulong Query_cache::resize(ulong query_cache_size_arg)
query_cache_size
=
query_cache_size_arg
;
ulong
new_query_cache_size
=
init_cache
();
DBUG_EXECUTE
(
"check_querycache"
,
check_integrity
(
0
););
STRUCT_LOCK
(
&
structure_guard_mutex
);
m_cache_status
=
Query_cache
::
NO_FLUSH_IN_PROGRESS
;
/*
Must not call check_integrity() with
m_cache_status != Query_cache::NO_FLUSH_IN_PROGRESS.
It would wait forever.
*/
DBUG_EXECUTE
(
"check_querycache"
,
check_integrity
(
1
););
pthread_cond_signal
(
&
COND_cache_status_changed
);
STRUCT_UNLOCK
(
&
structure_guard_mutex
);
...
...
@@ -4025,6 +4029,10 @@ my_bool Query_cache::check_integrity(bool locked)
Query_cache_block
*
block
=
first_block
;
do
{
/* When checking at system start, there is no block. */
if
(
!
block
)
break
;
DBUG_PRINT
(
"qcache"
,
(
"block 0x%lx, type %u..."
,
(
ulong
)
block
,
(
uint
)
block
->
type
));
// Check allignment
...
...
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