#At file:///Users/malff/BZR_TREE/mysql-next-mr-bugfixing/ based on revid:horst.hunger@stripped
3153 Marc Alff 2010-04-14
Tentative cleanup, test failures on 64 bits solaris / windows
modified:
storage/perfschema/pfs_global.h
=== modified file 'storage/perfschema/pfs_global.h'
--- a/storage/perfschema/pfs_global.h 2010-04-01 14:26:53 +0000
+++ b/storage/perfschema/pfs_global.h 2010-04-14 09:54:35 +0000
@@ -66,12 +66,13 @@ inline uint randomized_index(const void
value= (reinterpret_cast<intptr> (ptr)) >> 3;
value*= 1789;
value+= seed2 + seed1 + 1;
- value%= max_size;
- result= static_cast<uint> (value);
+ result= (static_cast<uint> (value)) % max_size;
+
seed2= seed1*seed1;
seed1= result;
+ DBUG_ASSERT(result < max_size);
return result;
}
Attachment: [text/bzr-bundle] bzr/marc.alff@oracle.com-20100414095435-1hxrrbxa6374snwo.bundle
| Thread |
|---|
| • bzr commit into mysql-next-mr-bugfixing branch (marc.alff:3153) | Marc Alff | 14 Apr |