Commit da81451d authored by unknown's avatar unknown

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
...@@ -430,6 +430,13 @@ ha_rows ha_ndbcluster::records() ...@@ -430,6 +430,13 @@ ha_rows ha_ndbcluster::records()
{ {
retval= stat.row_count; retval= stat.row_count;
} }
else
{
/**
* Be consistent with BUG#19914 until we fix it properly
*/
DBUG_RETURN(-1);
}
THD *thd= current_thd; THD *thd= current_thd;
if (get_thd_ndb(thd)->error) if (get_thd_ndb(thd)->error)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment