diff options
author | unknown <jonas@perch.ndb.mysql.com> | 2006-04-10 13:45:33 +0200 |
---|---|---|
committer | unknown <jonas@perch.ndb.mysql.com> | 2006-04-10 13:45:33 +0200 |
commit | 6187359960c32d074fb15294eed399bd25852b9b (patch) | |
tree | ba72dfaa838dcbd66a583ac1959a0a52354b9dea /ndb | |
parent | 6caa2495314e220676c911407b35c96567d140af (diff) | |
download | mariadb-git-6187359960c32d074fb15294eed399bd25852b9b.tar.gz |
ndb - bug#17607
fix correct frag count in Backup block
ndb/src/kernel/blocks/backup/BackupInit.cpp:
Fix correct no of fragment records
Diffstat (limited to 'ndb')
-rw-r--r-- | ndb/src/kernel/blocks/backup/BackupInit.cpp | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/ndb/src/kernel/blocks/backup/BackupInit.cpp b/ndb/src/kernel/blocks/backup/BackupInit.cpp index 2c36896e34c..7cd9c61f010 100644 --- a/ndb/src/kernel/blocks/backup/BackupInit.cpp +++ b/ndb/src/kernel/blocks/backup/BackupInit.cpp @@ -40,12 +40,12 @@ Backup::Backup(const Configuration & conf) : const ndb_mgm_configuration_iterator * p = conf.getOwnConfigIterator(); ndbrequire(p != 0); - Uint32 noBackups = 0, noTables = 0, noAttribs = 0; + Uint32 noBackups = 0, noTables = 0, noAttribs = 0, noFrags = 0; ndbrequire(!ndb_mgm_get_int_parameter(p, CFG_DB_DISCLESS, &m_diskless)); ndb_mgm_get_int_parameter(p, CFG_DB_PARALLEL_BACKUPS, &noBackups); - // ndbrequire(!ndb_mgm_get_int_parameter(p, CFG_DB_NO_TABLES, &noTables)); ndbrequire(!ndb_mgm_get_int_parameter(p, CFG_DICT_TABLE, &noTables)); - ndbrequire(!ndb_mgm_get_int_parameter(p, CFG_DB_NO_ATTRIBUTES, &noAttribs)); + ndbrequire(!ndb_mgm_get_int_parameter(p, CFG_DICT_ATTRIBUTE, &noAttribs)); + ndbrequire(!ndb_mgm_get_int_parameter(p, CFG_DIH_FRAG_CONNECT, &noFrags)); noAttribs++; //RT 527 bug fix @@ -55,8 +55,7 @@ Backup::Backup(const Configuration & conf) : c_attributePool.setSize(noBackups * noAttribs); c_triggerPool.setSize(noBackups * 3 * noTables); - // 2 = no of replicas - c_fragmentPool.setSize(noBackups * 2 * NO_OF_FRAG_PER_NODE * noTables); + c_fragmentPool.setSize(noBackups * noFrags); Uint32 szMem = 0; ndb_mgm_get_int_parameter(p, CFG_DB_BACKUP_MEM, &szMem); |