mirror of
https://github.com/MariaDB/server.git
synced 2025-01-31 11:01:52 +01:00
branches/5.1:
When using the random function, first take the modulus by the number of pages and then typecast to ulint. This is a followup to r4699 - the fix of Bug#43660.
This commit is contained in:
parent
af9b64a9d5
commit
3a4a53e75b
1 changed files with 1 additions and 1 deletions
|
@ -538,7 +538,7 @@ page_cur_open_on_rnd_user_rec(
|
|||
|
||||
rnd = page_rnd % page_get_n_recs(page);
|
||||
} else {
|
||||
rnd = (ulint) page_cur_lcg_prng() % page_get_n_recs(page);
|
||||
rnd = (ulint) (page_cur_lcg_prng() % page_get_n_recs(page));
|
||||
}
|
||||
|
||||
rec = page_get_infimum_rec(page);
|
||||
|
|
Loading…
Add table
Reference in a new issue