Commit 58fd4d94 authored by unknown's avatar unknown

ha_ndbcluster.cc:

  fixed change in struct in 4.1->5.0 merge


sql/ha_ndbcluster.cc:
  fixed change in struct in 4.1->5.0 merge
parent 7907009a
...@@ -3652,7 +3652,7 @@ static int create_ndb_column(NDBCOL &col, ...@@ -3652,7 +3652,7 @@ static int create_ndb_column(NDBCOL &col,
static void ndb_set_fragmentation(NDBTAB &tab, TABLE *form, uint pk_length) static void ndb_set_fragmentation(NDBTAB &tab, TABLE *form, uint pk_length)
{ {
if (form->max_rows == 0) /* default setting, don't set fragmentation */ if (form->s->max_rows == 0) /* default setting, don't set fragmentation */
return; return;
/** /**
* get the number of fragments right * get the number of fragments right
...@@ -3670,7 +3670,7 @@ static void ndb_set_fragmentation(NDBTAB &tab, TABLE *form, uint pk_length) ...@@ -3670,7 +3670,7 @@ static void ndb_set_fragmentation(NDBTAB &tab, TABLE *form, uint pk_length)
acc_row_size+= 4+4; /* overflow page will set the limit */ acc_row_size+= 4+4; /* overflow page will set the limit */
#endif #endif
ulonglong acc_fragment_size= 512*1024*1024; ulonglong acc_fragment_size= 512*1024*1024;
ulonglong max_rows= form->max_rows; ulonglong max_rows= form->s->max_rows;
no_fragments= (max_rows*acc_row_size)/acc_fragment_size+1; no_fragments= (max_rows*acc_row_size)/acc_fragment_size+1;
} }
{ {
......
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