Commit aa2ac91c authored by unknown's avatar unknown

ha_ndbcluster.cc:

  corrected typo in previous changeset


sql/ha_ndbcluster.cc:
  corrected typo in previous changeset
parent 4fd3b1cf
...@@ -3525,10 +3525,10 @@ static void ndb_set_fragmentation(NDBTAB &tab, TABLE *form, uint pk_length) ...@@ -3525,10 +3525,10 @@ static void ndb_set_fragmentation(NDBTAB &tab, TABLE *form, uint pk_length)
ulonglong acc_fragment_size= 512*1024*1024; ulonglong acc_fragment_size= 512*1024*1024;
ulonglong max_rows= form->max_rows; ulonglong max_rows= form->max_rows;
#if MYSQL_VERSION_ID >= 50100 #if MYSQL_VERSION_ID >= 50100
no_fragments= (max_rows*acc_row_size)/acc_fragment_size+1;
#else
no_fragments= ((max_rows*acc_row_size)/acc_fragment_size+1 no_fragments= ((max_rows*acc_row_size)/acc_fragment_size+1
+1/*correct rounding*/)/2; +1/*correct rounding*/)/2;
#else
no_fragments= (max_rows*acc_row_size)/acc_fragment_size+1;
#endif #endif
} }
{ {
......
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