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
b760bfd7
Commit
b760bfd7
authored
Nov 24, 2004
by
unknown
Browse files
Options
Browse Files
Download
Plain Diff
Merge tulin@bk-internal.mysql.com:/home/bk/mysql-4.1
into poseidon.ndb.mysql.com:/home/tomas/mysql-4.1-clean
parents
dcfd4e41
f4db89ea
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
ndb/src/kernel/vm/Configuration.cpp
ndb/src/kernel/vm/Configuration.cpp
+15
-0
No files found.
ndb/src/kernel/vm/Configuration.cpp
View file @
b760bfd7
...
...
@@ -34,6 +34,7 @@
#include <kernel_types.h>
#include <ndb_limits.h>
#include <ndbapi_limits.h>
#include "pc.hpp"
#include <LogLevel.hpp>
#include <NdbSleep.h>
...
...
@@ -454,6 +455,7 @@ Configuration::calcSizeAlt(ConfigValues * ownConfig){
unsigned
int
noOfTables
=
0
;
unsigned
int
noOfUniqueHashIndexes
=
0
;
unsigned
int
noOfOrderedIndexes
=
0
;
unsigned
int
noOfTriggers
=
0
;
unsigned
int
noOfReplicas
=
0
;
unsigned
int
noOfDBNodes
=
0
;
unsigned
int
noOfAPINodes
=
0
;
...
...
@@ -478,6 +480,7 @@ Configuration::calcSizeAlt(ConfigValues * ownConfig){
{
CFG_DB_NO_TABLES
,
&
noOfTables
,
false
},
{
CFG_DB_NO_ORDERED_INDEXES
,
&
noOfOrderedIndexes
,
false
},
{
CFG_DB_NO_UNIQUE_HASH_INDEXES
,
&
noOfUniqueHashIndexes
,
false
},
{
CFG_DB_NO_TRIGGERS
,
&
noOfTriggers
,
true
},
{
CFG_DB_NO_REPLICAS
,
&
noOfReplicas
,
false
},
{
CFG_DB_NO_ATTRIBUTES
,
&
noOfAttributes
,
false
},
{
CFG_DB_NO_OPS
,
&
noOfOperations
,
false
},
...
...
@@ -586,6 +589,18 @@ Configuration::calcSizeAlt(ConfigValues * ownConfig){
ConfigValues
::
Iterator
it2
(
*
ownConfig
,
db
.
m_config
);
it2
.
set
(
CFG_DB_NO_TABLES
,
noOfTables
);
it2
.
set
(
CFG_DB_NO_ATTRIBUTES
,
noOfAttributes
);
{
Uint32
neededNoOfTriggers
=
/* types: Insert/Update/Delete/Custom */
3
*
noOfUniqueHashIndexes
+
/* for unique hash indexes, I/U/D */
3
*
NDB_MAX_ACTIVE_EVENTS
+
/* for events in suma, I/U/D */
3
*
noOfTables
+
/* for backup, I/U/D */
noOfOrderedIndexes
;
/* for ordered indexes, C */
if
(
noOfTriggers
<
neededNoOfTriggers
)
{
noOfTriggers
=
neededNoOfTriggers
;
it2
.
set
(
CFG_DB_NO_TRIGGERS
,
noOfTriggers
);
}
}
/**
* Do size calculations
...
...
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