summaryrefslogtreecommitdiff
path: root/sql/ha_ndbcluster.cc
diff options
context:
space:
mode:
authortomas@poseidon.ndb.mysql.com <>2005-02-07 09:58:37 +0100
committertomas@poseidon.ndb.mysql.com <>2005-02-07 09:58:37 +0100
commit6bbaeed5b96da2ff56c3d118f4a44b8d992e3cf9 (patch)
tree53b24f95e98008a0a3944afde5c9ef0a30f71f66 /sql/ha_ndbcluster.cc
parent4873adace0826765ec330063330d6ce9481a4b8b (diff)
downloadmariadb-git-6bbaeed5b96da2ff56c3d118f4a44b8d992e3cf9.tar.gz
ha_ndbcluster.cc:
corrected typo in previous changeset
Diffstat (limited to 'sql/ha_ndbcluster.cc')
-rw-r--r--sql/ha_ndbcluster.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/ha_ndbcluster.cc b/sql/ha_ndbcluster.cc
index b4e05ace27b..9e34baae198 100644
--- a/sql/ha_ndbcluster.cc
+++ b/sql/ha_ndbcluster.cc
@@ -3525,10 +3525,10 @@ static void ndb_set_fragmentation(NDBTAB &tab, TABLE *form, uint pk_length)
ulonglong acc_fragment_size= 512*1024*1024;
ulonglong max_rows= form->max_rows;
#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
+1/*correct rounding*/)/2;
-#else
- no_fragments= (max_rows*acc_row_size)/acc_fragment_size+1;
#endif
}
{