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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
a5ba7db7
Commit
a5ba7db7
authored
Feb 07, 2005
by
tomas@poseidon.ndb.mysql.com
Browse files
Options
Browse Files
Download
Plain Diff
Merge
parents
0da4ee91
6bbaeed5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
sql/ha_ndbcluster.cc
sql/ha_ndbcluster.cc
+2
-3
No files found.
sql/ha_ndbcluster.cc
View file @
a5ba7db7
...
@@ -3681,11 +3681,10 @@ static void ndb_set_fragmentation(NDBTAB &tab, TABLE *form, uint pk_length)
...
@@ -3681,11 +3681,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
->
s
->
max_rows
;
ulonglong
max_rows
=
form
->
s
->
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
}
}
{
{
...
...
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