List:Commits« Previous MessageNext Message »
From:Marc Alff Date:April 14 2010 9:54am
Subject:bzr push into mysql-next-mr-bugfixing branch (marc.alff:3152 to 3153)
View as plain text  
 3153 Marc Alff	2010-04-14
      Tentative cleanup, test failures on 64 bits solaris / windows

    modified:
      storage/perfschema/pfs_global.h
 3152 Horst.Hunger	2010-04-14
      Patch including review results again due to merge.

    added:
      mysql-test/include/have_archive_plugin.inc
      mysql-test/r/archive_plugin.result
      mysql-test/t/archive_plugin-master.opt
      mysql-test/t/archive_plugin.test
    modified:
      storage/archive/Makefile.am
=== 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 push into mysql-next-mr-bugfixing branch (marc.alff:3152 to 3153)Marc Alff14 Apr