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
74b61f84
Commit
74b61f84
authored
Feb 03, 2012
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed typos in Query Cache.
parent
f5c8749a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
sql/sql_cache.cc
sql/sql_cache.cc
+4
-4
sql/sql_cache.h
sql/sql_cache.h
+2
-2
No files found.
sql/sql_cache.cc
View file @
74b61f84
...
@@ -1452,10 +1452,10 @@ def_week_frmt: %lu, in_trans: %d, autocommit: %d",
...
@@ -1452,10 +1452,10 @@ def_week_frmt: %lu, in_trans: %d, autocommit: %d",
In case the wait time can't be determined there is an upper limit which
In case the wait time can't be determined there is an upper limit which
causes try_lock() to abort with a time out.
causes try_lock() to abort with a time out.
The 'T
RUE
' parameter indicate that the lock is allowed to timeout
The 'T
IMEOUT
' parameter indicate that the lock is allowed to timeout
*/
*/
if
(
try_lock
(
thd
,
Query_cache
::
WAI
T
))
if
(
try_lock
(
thd
,
Query_cache
::
TIMEOU
T
))
DBUG_VOID_RETURN
;
DBUG_VOID_RETURN
;
if
(
query_cache_size
==
0
)
if
(
query_cache_size
==
0
)
{
{
...
@@ -1781,9 +1781,9 @@ Query_cache::send_result_to_client(THD *thd, char *org_sql, uint query_length)
...
@@ -1781,9 +1781,9 @@ Query_cache::send_result_to_client(THD *thd, char *org_sql, uint query_length)
disabled or if a full cache flush is in progress, the attempt to
disabled or if a full cache flush is in progress, the attempt to
get the lock is aborted.
get the lock is aborted.
The
WAI
T parameter indicate that the lock is allowed to timeout.
The
TIMEOU
T parameter indicate that the lock is allowed to timeout.
*/
*/
if
(
try_lock
(
thd
,
Query_cache
::
WAI
T
))
if
(
try_lock
(
thd
,
Query_cache
::
TIMEOU
T
))
goto
err
;
goto
err
;
if
(
query_cache_size
==
0
)
if
(
query_cache_size
==
0
)
...
...
sql/sql_cache.h
View file @
74b61f84
...
@@ -429,8 +429,8 @@ class Query_cache
...
@@ -429,8 +429,8 @@ class Query_cache
uint
def_query_hash_size
=
QUERY_CACHE_DEF_QUERY_HASH_SIZE
,
uint
def_query_hash_size
=
QUERY_CACHE_DEF_QUERY_HASH_SIZE
,
uint
def_table_hash_size
=
QUERY_CACHE_DEF_TABLE_HASH_SIZE
);
uint
def_table_hash_size
=
QUERY_CACHE_DEF_TABLE_HASH_SIZE
);
bool
is_disabled
(
void
)
{
return
m_cache_status
!=
OK
;
}
inline
bool
is_disabled
(
void
)
{
return
m_cache_status
!=
OK
;
}
bool
is_disable_in_progress
(
void
)
inline
bool
is_disable_in_progress
(
void
)
{
return
m_cache_status
==
DISABLE_REQUEST
;
}
{
return
m_cache_status
==
DISABLE_REQUEST
;
}
/* initialize cache (mutex) */
/* initialize cache (mutex) */
...
...
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