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
b6d03461
Commit
b6d03461
authored
Jan 02, 2002
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixing query cache validator
BitKeeper/etc/logging_ok: Logging to logging@openlogging.org accepted
parent
51e3375b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
36 additions
and
1 deletion
+36
-1
BitKeeper/etc/logging_ok
BitKeeper/etc/logging_ok
+1
-0
sql/sql_cache.cc
sql/sql_cache.cc
+35
-1
No files found.
BitKeeper/etc/logging_ok
View file @
b6d03461
...
@@ -38,3 +38,4 @@ tonu@x153.internalnet
...
@@ -38,3 +38,4 @@ tonu@x153.internalnet
tonu@x3.internalnet
tonu@x3.internalnet
jcole@sarvik.tfr.cafe.ee
jcole@sarvik.tfr.cafe.ee
venu@work.mysql.com
venu@work.mysql.com
bell@sanja.is.com.ua
sql/sql_cache.cc
View file @
b6d03461
...
@@ -1385,7 +1385,6 @@ void Query_cache::free_cache(my_bool destruction)
...
@@ -1385,7 +1385,6 @@ void Query_cache::free_cache(my_bool destruction)
hash_free
(
&
tables
);
hash_free
(
&
tables
);
if
(
!
destruction
)
if
(
!
destruction
)
STRUCT_UNLOCK
(
&
structure_guard_mutex
);
STRUCT_UNLOCK
(
&
structure_guard_mutex
);
DBUG_EXECUTE
(
"check_querycache"
,
check_integrity
(););
}
}
DBUG_VOID_RETURN
;
DBUG_VOID_RETURN
;
}
}
...
@@ -2809,6 +2808,13 @@ void Query_cache::wreck(uint line, const char *message)
...
@@ -2809,6 +2808,13 @@ void Query_cache::wreck(uint line, const char *message)
void
Query_cache
::
bins_dump
()
void
Query_cache
::
bins_dump
()
{
{
uint
i
;
uint
i
;
if
(
!
initialized
)
{
DBUG_PRINT
(
"qcache"
,
(
"Query Cache not initialized"
));
return
;
}
DBUG_PRINT
(
"qcache"
,
(
"mem_bin_num=%u, mem_bin_steps=%u"
,
DBUG_PRINT
(
"qcache"
,
(
"mem_bin_num=%u, mem_bin_steps=%u"
,
mem_bin_num
,
mem_bin_steps
));
mem_bin_num
,
mem_bin_steps
));
DBUG_PRINT
(
"qcache"
,
(
"-------------------------"
));
DBUG_PRINT
(
"qcache"
,
(
"-------------------------"
));
...
@@ -2844,6 +2850,13 @@ void Query_cache::bins_dump()
...
@@ -2844,6 +2850,13 @@ void Query_cache::bins_dump()
void
Query_cache
::
cache_dump
()
void
Query_cache
::
cache_dump
()
{
{
if
(
!
initialized
)
{
DBUG_PRINT
(
"qcache"
,
(
"Query Cache not initialized"
));
return
;
}
DBUG_PRINT
(
"qcache"
,
(
"-------------------------------------"
));
DBUG_PRINT
(
"qcache"
,
(
"-------------------------------------"
));
DBUG_PRINT
(
"qcache"
,
(
" length used t nt"
));
DBUG_PRINT
(
"qcache"
,
(
" length used t nt"
));
DBUG_PRINT
(
"qcache"
,
(
"-------------------------------------"
));
DBUG_PRINT
(
"qcache"
,
(
"-------------------------------------"
));
...
@@ -2864,6 +2877,13 @@ void Query_cache::cache_dump()
...
@@ -2864,6 +2877,13 @@ void Query_cache::cache_dump()
void
Query_cache
::
queries_dump
()
void
Query_cache
::
queries_dump
()
{
{
if
(
!
initialized
)
{
DBUG_PRINT
(
"qcache"
,
(
"Query Cache not initialized"
));
return
;
}
DBUG_PRINT
(
"qcache"
,
(
"------------------"
));
DBUG_PRINT
(
"qcache"
,
(
"------------------"
));
DBUG_PRINT
(
"qcache"
,
(
" QUERIES"
));
DBUG_PRINT
(
"qcache"
,
(
" QUERIES"
));
DBUG_PRINT
(
"qcache"
,
(
"------------------"
));
DBUG_PRINT
(
"qcache"
,
(
"------------------"
));
...
@@ -2920,6 +2940,13 @@ void Query_cache::queries_dump()
...
@@ -2920,6 +2940,13 @@ void Query_cache::queries_dump()
void
Query_cache
::
tables_dump
()
void
Query_cache
::
tables_dump
()
{
{
if
(
!
initialized
)
{
DBUG_PRINT
(
"qcache"
,
(
"Query Cache not initialized"
));
return
;
}
DBUG_PRINT
(
"qcache"
,
(
"--------------------"
));
DBUG_PRINT
(
"qcache"
,
(
"--------------------"
));
DBUG_PRINT
(
"qcache"
,
(
"TABLES"
));
DBUG_PRINT
(
"qcache"
,
(
"TABLES"
));
DBUG_PRINT
(
"qcache"
,
(
"--------------------"
));
DBUG_PRINT
(
"qcache"
,
(
"--------------------"
));
...
@@ -2949,6 +2976,13 @@ my_bool Query_cache::check_integrity()
...
@@ -2949,6 +2976,13 @@ my_bool Query_cache::check_integrity()
uint
i
;
uint
i
;
STRUCT_LOCK
(
&
structure_guard_mutex
);
STRUCT_LOCK
(
&
structure_guard_mutex
);
if
(
!
initialized
)
{
STRUCT_UNLOCK
(
&
structure_guard_mutex
);
DBUG_PRINT
(
"qcache"
,
(
"Query Cache not initialized"
));
return
0
;
}
if
(
hash_check
(
&
queries
))
if
(
hash_check
(
&
queries
))
{
{
DBUG_PRINT
(
"error"
,
(
"queries hash is damaged"
));
DBUG_PRINT
(
"error"
,
(
"queries hash is damaged"
));
...
...
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