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
2339b328
Commit
2339b328
authored
Feb 04, 2005
by
tulin@mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ha_ndbcluster.cc:
fixed change in struct in 4.1->5.0 merge
parent
e09f50d7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
sql/ha_ndbcluster.cc
sql/ha_ndbcluster.cc
+2
-2
No files found.
sql/ha_ndbcluster.cc
View file @
2339b328
...
@@ -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
;
}
}
{
{
...
...
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