#At file:///home/satya/WORK/mysql/mysql-5.1-bugteam-innodb/ based on revid:ramil@stripped
2889 Satya B 2009-05-19
Applying InnoDB snashot 5.1-ss5024 part 1, Follow up Fix for BUG#43660
Detailed revision comments:
r4705 | vasil | 2009-04-14 14:30:13 +0300 (Tue, 14 Apr 2009) | 7 lines
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.
modified:
storage/innobase/page/page0cur.c
=== modified file 'storage/innobase/page/page0cur.c'
--- a/storage/innobase/page/page0cur.c 2009-04-24 11:28:46 +0000
+++ b/storage/innobase/page/page0cur.c 2009-05-19 07:52:19 +0000
@@ -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);
| Thread |
|---|
| • bzr commit into mysql-5.1-bugteam branch (satya.bn:2889) Bug#43660 | Satya B | 19 May |