summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorunknown <tomas@poseidon.ndb.mysql.com>2004-11-24 16:04:11 +0000
committerunknown <tomas@poseidon.ndb.mysql.com>2004-11-24 16:04:11 +0000
commitf4db89ea85fdadbf32d4c24eb8c7b92fd84c0bc0 (patch)
treee78b8129bb9db679f5d3da68277dc25cfd05707b
parent61dbdff2a6f80e15721e245d168f5f276d78b0b5 (diff)
downloadmariadb-git-f4db89ea85fdadbf32d4c24eb8c7b92fd84c0bc0.tar.gz
also backup needs triggers
-rw-r--r--ndb/src/kernel/vm/Configuration.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/ndb/src/kernel/vm/Configuration.cpp b/ndb/src/kernel/vm/Configuration.cpp
index 92b09891a2f..931b4da5a17 100644
--- a/ndb/src/kernel/vm/Configuration.cpp
+++ b/ndb/src/kernel/vm/Configuration.cpp
@@ -590,9 +590,11 @@ Configuration::calcSizeAlt(ConfigValues * ownConfig){
it2.set(CFG_DB_NO_TABLES, noOfTables);
it2.set(CFG_DB_NO_ATTRIBUTES, noOfAttributes);
{
- Uint32 neededNoOfTriggers =
- 3 * (noOfUniqueHashIndexes + NDB_MAX_ACTIVE_EVENTS)+
- noOfOrderedIndexes;
+ 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;