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
29bb4b54
Commit
29bb4b54
authored
Sep 22, 2007
by
vasil
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
branches/zip:
Non-functional: put the code that clears the IS cache into a separate function.
parent
a6ad3753
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
4 deletions
+16
-4
trx/trx0i_s.c
trx/trx0i_s.c
+16
-4
No files found.
trx/trx0i_s.c
View file @
29bb4b54
...
...
@@ -741,6 +741,21 @@ the same version of the cache. */
return
(
FALSE
);
}
/***********************************************************************
Declare a cache empty, preparing it to be filled up. Not all resources
are freed because they can be reused. */
static
void
trx_i_s_cache_clear
(
/*================*/
trx_i_s_cache_t
*
cache
)
/* out: cache to clear */
{
cache
->
innodb_trx
.
rows_used
=
0
;
cache
->
innodb_locks
.
rows_used
=
0
;
cache
->
innodb_lock_waits
.
rows_used
=
0
;
hash_table_clear
(
cache
->
locks_hash
);
}
/***********************************************************************
Fetches the data needed to fill the 3 INFORMATION SCHEMA tables into the
table cache buffer. Cache must be locked for write. */
...
...
@@ -754,10 +769,7 @@ fetch_data_into_cache(
i_s_trx_row_t
*
trx_row
;
i_s_locks_row_t
*
wait_lock_row
;
cache
->
innodb_trx
.
rows_used
=
0
;
cache
->
innodb_locks
.
rows_used
=
0
;
cache
->
innodb_lock_waits
.
rows_used
=
0
;
hash_table_clear
(
cache
->
locks_hash
);
trx_i_s_cache_clear
(
cache
);
/* We iterate over the list of all transactions and add each one
to innodb_trx's cache. We also add all locks that are relevant
...
...
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