Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mariadb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
mariadb
Commits
9dc6087d
Commit
9dc6087d
authored
Aug 22, 2006
by
pekka@orca.ndb.mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ndb - post-merge fix 5.0 to 5.0-ndb: number of frags if --without-big-tables
parent
f301613f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
sql/ha_ndbcluster.cc
sql/ha_ndbcluster.cc
+7
-2
No files found.
sql/ha_ndbcluster.cc
View file @
9dc6087d
...
...
@@ -4175,10 +4175,15 @@ static void ndb_set_fragmentation(NDBTAB &tab, TABLE *form, uint pk_length)
acc_row_size
+=
4
+
/*safety margin*/
4
;
#endif
ulonglong
acc_fragment_size
=
512
*
1024
*
1024
;
/*
* if not --with-big-tables then max_rows is ulong
* the warning in this case is misleading though
*/
ulonglong
big_max_rows
=
(
ulonglong
)
max_rows
;
#if MYSQL_VERSION_ID >= 50100
no_fragments
=
(
max_rows
*
acc_row_size
)
/
acc_fragment_size
+
1
;
no_fragments
=
(
big_
max_rows
*
acc_row_size
)
/
acc_fragment_size
+
1
;
#else
no_fragments
=
((
max_rows
*
acc_row_size
)
/
acc_fragment_size
+
1
no_fragments
=
((
big_
max_rows
*
acc_row_size
)
/
acc_fragment_size
+
1
+
1
/*correct rounding*/
)
/
2
;
#endif
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment