Commit da81451d authored by unknown's avatar unknown
Browse files

BUG#20725 MySQLD cluster use "fast count" is broken

fix based on review by tomas.

conform to bug we haven't fixed yet.


sql/ha_ndbcluster.cc:
  return -1 on error in ::records().
  
  produces a compiler warning, a bug and is evil.
  
  however, until we go and really fix the bug properly, it's best to conform
parent 95126295
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -430,6 +430,13 @@ ha_rows ha_ndbcluster::records()
  {
    retval= stat.row_count;
  }
  else
  {
    /**
     * Be consistent with BUG#19914 until we fix it properly
     */
    DBUG_RETURN(-1);
  }

  THD *thd= current_thd;
  if (get_thd_ndb(thd)->error)