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
4ef3e54b
Commit
4ef3e54b
authored
Feb 21, 2005
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
postreview changes
sql/sql_cache.cc: typo fixed comment added small optimisation
parent
b6a28b3c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
4 deletions
+17
-4
sql/sql_cache.cc
sql/sql_cache.cc
+17
-4
No files found.
sql/sql_cache.cc
View file @
4ef3e54b
...
...
@@ -311,7 +311,7 @@ TODO list:
#include "emb_qcache.h"
#endif
#if !defined(
DBUG_OFF
) && !defined(DBUG_OFF)
#if !defined(
EXTRA_DBUG
) && !defined(DBUG_OFF)
#define MUTEX_LOCK(M) { DBUG_PRINT("lock", ("mutex lock 0x%lx", (ulong)(M))); \
pthread_mutex_lock(M);}
#define MUTEX_UNLOCK(M) {DBUG_PRINT("lock", ("mutex unlock 0x%lx",\
...
...
@@ -2104,6 +2104,21 @@ void Query_cache::invalidate_table(Query_cache_block *table_block)
}
/*
Register given table list begining with given position in tables table of
block
SYNOPSIS
Query_cache::register_tables_from_list
tables_used given table list
counter number current position in table of tables of block
block_table pointer to current position in tables table of block
RETURN
0 error
number of next position of table entry in table of tables of block
*/
TABLE_COUNTER_TYPE
Query_cache
::
register_tables_from_list
(
TABLE_LIST
*
tables_used
,
TABLE_COUNTER_TYPE
counter
,
...
...
@@ -2738,13 +2753,12 @@ static TABLE_COUNTER_TYPE process_and_count_tables(TABLE_LIST *tables_used,
TABLE_COUNTER_TYPE
table_count
=
0
;
for
(;
tables_used
;
tables_used
=
tables_used
->
next_global
)
{
table_count
++
;
if
(
tables_used
->
view
)
{
DBUG_PRINT
(
"qcache"
,
(
"view %s, db %s"
,
tables_used
->
view_name
.
str
,
tables_used
->
view_db
.
str
));
table_count
++
;
*
tables_type
|=
HA_CACHE_TBL_NONTRANSACT
;
{
TABLE_COUNTER_TYPE
subcount
;
...
...
@@ -2756,7 +2770,6 @@ static TABLE_COUNTER_TYPE process_and_count_tables(TABLE_LIST *tables_used,
}
else
{
table_count
++
;
DBUG_PRINT
(
"qcache"
,
(
"table %s, db %s, type %u"
,
tables_used
->
table
->
s
->
table_name
,
tables_used
->
table
->
s
->
table_cache_key
,
...
...
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