List:Commits« Previous MessageNext Message »
From:magnus.blaudd Date:June 8 2011 1:35pm
Subject:bzr commit into mysql-trunk-cluster branch (magnus.blaudd:3316) WL#5185
View as plain text  
#At file:///data0/magnus/mysql/trunk-cluster/ based on revid:magnus.blaudd@stripped

 3316 magnus.blaudd@stripped	2011-06-08
      Cherry pick follow up fix for WL#5185

    modified:
      client/mysqltest.cc
=== modified file 'client/mysqltest.cc'
--- a/client/mysqltest.cc	2011-05-20 11:50:50 +0000
+++ b/client/mysqltest.cc	2011-06-08 13:34:57 +0000
@@ -4202,7 +4202,9 @@ int do_save_master_pos()
   */
   {
     ulong have_ndbcluster;
-    if (mysql_query(mysql, query= "show variables like 'have_ndbcluster'"))
+    if (mysql_query(mysql, query= "select support "
+                                  "from information_schema.engines "
+                                  "where engine='ndbcluster'"))
       die("'%s' failed: %d %s", query,
           mysql_errno(mysql), mysql_error(mysql));
     if (!(res= mysql_store_result(mysql)))
@@ -4210,7 +4212,7 @@ int do_save_master_pos()
     if (!(row= mysql_fetch_row(res)))
       die("Query '%s' returned empty result", query);
 
-    have_ndbcluster= strcmp("YES", row[1]) == 0;
+    have_ndbcluster= strcmp("YES", row[0]) == 0;
     mysql_free_result(res);
 
     if (have_ndbcluster)


Attachment: [text/bzr-bundle] bzr/magnus.blaudd@oracle.com-20110608133457-2ysf0qrtn6ebv7nk.bundle
Thread
bzr commit into mysql-trunk-cluster branch (magnus.blaudd:3316) WL#5185magnus.blaudd8 Jun