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
ebc7c9cb
Commit
ebc7c9cb
authored
Nov 24, 2004
by
tomas@poseidon.ndb.mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
calculation of noOfTriggers
parent
003b28d0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
ndb/src/kernel/vm/Configuration.cpp
ndb/src/kernel/vm/Configuration.cpp
+13
-0
No files found.
ndb/src/kernel/vm/Configuration.cpp
View file @
ebc7c9cb
...
...
@@ -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,16 @@ 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
=
3
*
(
noOfUniqueHashIndexes
+
NDB_MAX_ACTIVE_EVENTS
)
+
noOfOrderedIndexes
;
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