Commit a6ad3753 authored by vasil's avatar vasil

branches/zip:

Cosmetic: initialize the members of the cache in the same order as
they are defined in the structure.
parent 841306b6
......@@ -811,18 +811,18 @@ trx_i_s_cache_init(
/*===============*/
trx_i_s_cache_t* cache) /* out: cache to init */
{
rw_lock_create(&cache->rw_lock, SYNC_INFORMATION_SCHEMA);
cache->last_read = 0;
mutex_create(&cache->last_read_mutex, SYNC_INFORMATION_SCHEMA);
table_cache_init(&cache->innodb_trx, sizeof(i_s_trx_row_t));
table_cache_init(&cache->innodb_locks, sizeof(i_s_locks_row_t));
table_cache_init(&cache->innodb_lock_waits,
sizeof(i_s_lock_waits_row_t));
cache->locks_hash = hash_create(LOCKS_HASH_CELLS_NUM);
rw_lock_create(&cache->rw_lock, SYNC_INFORMATION_SCHEMA);
mutex_create(&cache->last_read_mutex, SYNC_INFORMATION_SCHEMA);
}
/***********************************************************************
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment