List:Commits« Previous MessageNext Message »
From:Pekka Nousiainen Date:June 16 2011 11:36am
Subject:bzr commit into mysql-5.1-telco-7.0-wl4124-new1 branch
(pekka.nousiainen:4402) WL#4124
View as plain text  
#At file:///export/space/pekka/ms/ms-wl4124-70/ based on revid:pekka.nousiainen@stripped

 4402 Pekka Nousiainen	2011-06-16
      wl#4124 x10_fix.diff
      build fixes

    modified:
      sql/ha_ndb_index_stat.cc
=== modified file 'sql/ha_ndb_index_stat.cc'
--- a/sql/ha_ndb_index_stat.cc	2011-06-15 18:07:15 +0000
+++ b/sql/ha_ndb_index_stat.cc	2011-06-16 11:36:45 +0000
@@ -20,11 +20,19 @@
 #ifdef WITH_NDBCLUSTER_STORAGE_ENGINE
 
 #include "ha_ndbcluster.h"
-#include "ha_ndbcluster_binlog.h"
 #include "ha_ndb_index_stat.h"
 #include <mysql/plugin.h>
 #include <ctype.h>
 
+// copied from ha_ndbcluster_binlog.h
+
+extern handlerton *ndbcluster_hton;
+
+inline
+void
+set_thd_ndb(THD *thd, Thd_ndb *thd_ndb)
+{ thd_set_ha_data(thd, ndbcluster_hton, thd_ndb); }
+
 // Typedefs for long names 
 typedef NdbDictionary::Table NDBTAB;
 typedef NdbDictionary::Index NDBINDEX;
@@ -1530,7 +1538,7 @@ ndb_index_stat_thread_func(void *arg __a
 {
   THD *thd; /* needs to be first for thread_stack */
   struct timespec abstime;
-  Thd_ndb *thd_ndb;
+  Thd_ndb *thd_ndb= NULL;
 
   my_thread_init();
   DBUG_ENTER("ndb_index_stat_thread_func");
@@ -1635,7 +1643,7 @@ ndb_index_stat_thread_func(void *arg __a
                                       &LOCK_ndb_index_stat_thread,
                                       &abstime);
       const char* reason= ret == ETIMEDOUT ? "timed out" : "wake up";
-      (void*)&reason; //USED
+      (void)reason; // USED
       DBUG_PRINT("index_stat", ("loop: %s", reason));
     }
     if (ndbcluster_terminating) /* Shutting down server */
@@ -1740,7 +1748,7 @@ ha_ndbcluster::ndb_index_stat_wait(Ndb_i
   pthread_mutex_lock(&ndb_index_stat_stat_mutex);
   int err= 0;
   uint count= 0;
-  (void*)&count; //USED
+  (void)count; // USED
   struct timespec abstime;
   while (true) {
     int ret= 0;


Attachment: [text/bzr-bundle] bzr/pekka.nousiainen@oracle.com-20110616113645-gff9xts5mp1a0u9e.bundle
Thread
bzr commit into mysql-5.1-telco-7.0-wl4124-new1 branch(pekka.nousiainen:4402) WL#4124Pekka Nousiainen16 Jun