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
0f355a46
Commit
0f355a46
authored
Jul 18, 2007
by
istruewing@chilla.local
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Post-merge fixes
Fixed debug code of new query cache implementation.
parent
0d027edd
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 @
0f355a46
...
@@ -878,10 +878,14 @@ ulong Query_cache::resize(ulong query_cache_size_arg)
...
@@ -878,10 +878,14 @@ ulong Query_cache::resize(ulong query_cache_size_arg)
query_cache_size
=
query_cache_size_arg
;
query_cache_size
=
query_cache_size_arg
;
ulong
new_query_cache_size
=
init_cache
();
ulong
new_query_cache_size
=
init_cache
();
DBUG_EXECUTE
(
"check_querycache"
,
check_integrity
(
0
););
STRUCT_LOCK
(
&
structure_guard_mutex
);
STRUCT_LOCK
(
&
structure_guard_mutex
);
m_cache_status
=
Query_cache
::
NO_FLUSH_IN_PROGRESS
;
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
);
pthread_cond_signal
(
&
COND_cache_status_changed
);
STRUCT_UNLOCK
(
&
structure_guard_mutex
);
STRUCT_UNLOCK
(
&
structure_guard_mutex
);
...
@@ -4025,6 +4029,10 @@ my_bool Query_cache::check_integrity(bool locked)
...
@@ -4025,6 +4029,10 @@ my_bool Query_cache::check_integrity(bool locked)
Query_cache_block
*
block
=
first_block
;
Query_cache_block
*
block
=
first_block
;
do
do
{
{
/* When checking at system start, there is no block. */
if
(
!
block
)
break
;
DBUG_PRINT
(
"qcache"
,
(
"block 0x%lx, type %u..."
,
DBUG_PRINT
(
"qcache"
,
(
"block 0x%lx, type %u..."
,
(
ulong
)
block
,
(
uint
)
block
->
type
));
(
ulong
)
block
,
(
uint
)
block
->
type
));
// Check allignment
// 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