mirror of
https://github.com/MariaDB/server.git
synced 2026-05-15 11:27:39 +02:00
Applying InnoDB snapshot innodb-5.1-ss3603
Detailed description of changes: r3588 | inaam | 2008-12-18 14:26:54 +0200 (Thu, 18 Dec 2008) | 8 lines branches/5.1 It is a bug in unused code. If we don't calculate the hash value when calculating the mutex number then two pages which map to same hash value can get two different mutex numbers. Approved by: Marko
This commit is contained in:
parent
14c7d56ba8
commit
8759d9275d
1 changed files with 2 additions and 1 deletions
|
|
@ -58,7 +58,8 @@ hash_get_mutex_no(
|
|||
hash_table_t* table, /* in: hash table */
|
||||
ulint fold) /* in: fold */
|
||||
{
|
||||
return(ut_2pow_remainder(fold, table->n_mutexes));
|
||||
return(ut_2pow_remainder(hash_calc_hash(fold, table),
|
||||
table->n_mutexes));
|
||||
}
|
||||
|
||||
/****************************************************************
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue