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
da7c9e26
Commit
da7c9e26
authored
Nov 19, 2004
by
tomas@poseidon.ndb.mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
set sizes array sizes correctly in ndb blocks configuration
parent
0e3c284b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
16 deletions
+20
-16
ndb/src/kernel/vm/Configuration.cpp
ndb/src/kernel/vm/Configuration.cpp
+20
-16
No files found.
ndb/src/kernel/vm/Configuration.cpp
View file @
da7c9e26
...
@@ -590,6 +590,23 @@ Configuration::calcSizeAlt(ConfigValues * ownConfig){
...
@@ -590,6 +590,23 @@ Configuration::calcSizeAlt(ConfigValues * ownConfig){
*/
*/
ConfigValuesFactory
cfg
(
ownConfig
);
ConfigValuesFactory
cfg
(
ownConfig
);
Uint32
noOfMetaTables
=
noOfTables
+
noOfOrderedIndexes
+
noOfUniqueHashIndexes
;
if
(
noOfMetaTables
>
MAX_TABLES
)
noOfMetaTables
=
MAX_TABLES
;
{
/**
* Dict Size Alt values
*/
cfg
.
put
(
CFG_DICT_ATTRIBUTE
,
noOfAttributes
);
cfg
.
put
(
CFG_DICT_TABLE
,
noOfMetaTables
);
}
if
(
noOfLocalScanRecords
==
0
)
{
if
(
noOfLocalScanRecords
==
0
)
{
noOfLocalScanRecords
=
(
noOfDBNodes
*
noOfScanRecords
)
+
1
;
noOfLocalScanRecords
=
(
noOfDBNodes
*
noOfScanRecords
)
+
1
;
}
}
...
@@ -599,7 +616,7 @@ Configuration::calcSizeAlt(ConfigValues * ownConfig){
...
@@ -599,7 +616,7 @@ Configuration::calcSizeAlt(ConfigValues * ownConfig){
Uint32
noOfTCScanRecords
=
noOfScanRecords
;
Uint32
noOfTCScanRecords
=
noOfScanRecords
;
{
{
Uint32
noOfAccTables
=
noOf
Tables
+
noOfUniqueHashIndexes
;
Uint32
noOfAccTables
=
noOf
MetaTables
/*noOfTables+noOfUniqueHashIndexes*/
;
/**
/**
* Acc Size Alt values
* Acc Size Alt values
*/
*/
...
@@ -641,19 +658,6 @@ Configuration::calcSizeAlt(ConfigValues * ownConfig){
...
@@ -641,19 +658,6 @@ Configuration::calcSizeAlt(ConfigValues * ownConfig){
cfg
.
put
(
CFG_ACC_SCAN
,
noOfLocalScanRecords
);
cfg
.
put
(
CFG_ACC_SCAN
,
noOfLocalScanRecords
);
}
}
Uint32
noOfMetaTables
=
noOfTables
+
noOfOrderedIndexes
+
noOfUniqueHashIndexes
;
{
/**
* Dict Size Alt values
*/
cfg
.
put
(
CFG_DICT_ATTRIBUTE
,
noOfAttributes
);
cfg
.
put
(
CFG_DICT_TABLE
,
noOfMetaTables
);
}
{
{
/**
/**
* Dih Size Alt values
* Dih Size Alt values
...
@@ -758,9 +762,9 @@ Configuration::calcSizeAlt(ConfigValues * ownConfig){
...
@@ -758,9 +762,9 @@ Configuration::calcSizeAlt(ConfigValues * ownConfig){
* Tux Size Alt values
* Tux Size Alt values
*/
*/
cfg
.
put
(
CFG_TUX_INDEX
,
cfg
.
put
(
CFG_TUX_INDEX
,
noOf
OrderedIndexes
);
noOf
MetaTables
/*noOfOrderedIndexes*/
);
cfg
.
put
(
CFG_TUX_FRAGMENT
,
cfg
.
put
(
CFG_TUX_FRAGMENT
,
2
*
NO_OF_FRAG_PER_NODE
*
noOfOrderedIndexes
*
noOfReplicas
);
2
*
NO_OF_FRAG_PER_NODE
*
noOfOrderedIndexes
*
noOfReplicas
);
cfg
.
put
(
CFG_TUX_ATTRIBUTE
,
cfg
.
put
(
CFG_TUX_ATTRIBUTE
,
...
...
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