List:Commits« Previous MessageNext Message »
From:jonas Date:August 31 2006 11:30am
Subject:bk commit into 5.1 tree (jonas:1.2038) BUG#17607
View as plain text  
Below is the list of changes that have just been committed into a local
5.1 repository of jonas. When jonas does a push these changes will
be propagated to the main repository and, within 24 hours after the
push, to the public repository.
For information on how to access the public repository
see http://dev.mysql.com/doc/mysql/en/installing-source-tree.html

ChangeSet@stripped, 2006-08-31 11:30:08+02:00, jonas@stripped +1 -0
  ndb - bug#17607
      fix correct frag count in Backup block

  storage/ndb/src/kernel/blocks/backup/Backup.cpp@stripped, 2006-08-31 11:30:06+02:00,
jonas@stripped +3 -4
    Fix correct no of fragment records

# This is a BitKeeper patch.  What follows are the unified diffs for the
# set of deltas contained in the patch.  The rest of the patch, the part
# that BitKeeper cares about, is below these diffs.
# User:	jonas
# Host:	perch.ndb.mysql.com
# Root:	/home/jonas/src/mysql-5.1-wl2325-5.0

--- 1.30/storage/ndb/src/kernel/blocks/backup/Backup.cpp	2006-08-31 11:30:11 +02:00
+++ 1.31/storage/ndb/src/kernel/blocks/backup/Backup.cpp	2006-08-31 11:30:11 +02:00
@@ -88,12 +88,13 @@
 
   c_nodePool.setSize(MAX_NDB_NODES);
 
-  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_DIH_FRAG_CONNECT, &noFrags));
 
   noAttribs++; //RT 527 bug fix
 
@@ -102,9 +103,7 @@
   c_tablePool.setSize(noBackups * noTables);
   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);
Thread
bk commit into 5.1 tree (jonas:1.2038) BUG#17607jonas31 Aug