List:Commits« Previous MessageNext Message »
From:Jonas Oreland Date:March 21 2012 2:08pm
Subject:bzr push into mysql-5.1-telco-7.0 branch (jonas.oreland:4897 to 4898)
View as plain text  
 4898 Jonas Oreland	2012-03-21
      ndb - fix win32 compile failure in mt-send-t.cpp (rand_r)

    modified:
      storage/ndb/src/kernel/vm/mt-send-t.cpp
 4897 Jonas Oreland	2012-03-21
      ndb - fix compiler warning in mt-send-t.cpp

    modified:
      storage/ndb/src/kernel/vm/mt-send-t.cpp
=== modified file 'storage/ndb/src/kernel/vm/mt-send-t.cpp'
--- a/storage/ndb/src/kernel/vm/mt-send-t.cpp	2012-03-21 10:04:27 +0000
+++ b/storage/ndb/src/kernel/vm/mt-send-t.cpp	2012-03-21 14:07:51 +0000
@@ -6,6 +6,7 @@
 #include <NdbCondition.h>
 #include <NdbTap.hpp>
 #include <Bitmask.hpp>
+#include <ndb_rand.h>
 
 #define BUGGY_VERSION 0
 
@@ -249,7 +250,7 @@ thread_main(void * _t)
         /**
          * Produce a signal to destination D
          */
-        unsigned D = rand_r(&seed) % cnt_transporters;
+        unsigned D = unsigned(ndb_rand_r(&seed)) % cnt_transporters;
         self->p.produce(D);
       }
 
@@ -258,7 +259,7 @@ thread_main(void * _t)
       /**
        * This is the equivalent of do_send()
        */
-      bool force = unsigned(rand_r(&seed) % 100) < pct_force;
+      bool force = unsigned(ndb_rand_r(&seed) % 100) < pct_force;
       self->p.consume(force);
     }
     test.wait_completed();

No bundle (reason: useless for push emails).
Thread
bzr push into mysql-5.1-telco-7.0 branch (jonas.oreland:4897 to 4898) Jonas Oreland21 Mar