MySQL Lists are EOL. Please join:

List:Commits« Previous MessageNext Message »
From:jonas Date:October 20 2006 12:37pm
Subject:bk commit into 5.1 tree (jonas:1.2320) BUG#23494
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-10-20 14:37:34+02:00, jonas@stripped +1 -0
  ndb - bug#23494
      Fix bug in restore with table with many columns, Compute size of databuffer pool correctly

  storage/ndb/src/kernel/blocks/restore.cpp@stripped, 2006-10-20 14:37:32+02:00, jonas@stripped +6 -1
    ndb - bug#23494
        Fix bug in restore with table with many columns, Compute size of databuffer pool correctly

# 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/51-work

--- 1.9/storage/ndb/src/kernel/blocks/restore.cpp	2006-10-20 14:37:39 +02:00
+++ 1.10/storage/ndb/src/kernel/blocks/restore.cpp	2006-10-20 14:37:39 +02:00
@@ -173,7 +173,12 @@
   }
 #endif
   m_file_pool.setSize(1);
-  m_databuffer_pool.setSize((1*128+PAGES+List::getSegmentSize()-1)/List::getSegmentSize());
+  Uint32 cnt = 2*MAX_ATTRIBUTES_IN_TABLE;
+  cnt += PAGES;
+  cnt += List::getSegmentSize()-1;
+  cnt /= List::getSegmentSize();
+  cnt += 2;
+  m_databuffer_pool.setSize(cnt);
   
   ReadConfigConf * conf = (ReadConfigConf*)signal->getDataPtrSend();
   conf->senderRef = reference();
Thread
bk commit into 5.1 tree (jonas:1.2320) BUG#23494jonas20 Oct