List:Internals« Previous MessageNext Message »
From:tomas Date:May 24 2005 4:33pm
Subject:bk commit into 5.1 tree (tomas:1.1873)
View as plain text  
Below is the list of changes that have just been committed into a local
5.1 repository of tomas. When tomas 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
  1.1873 05/05/24 16:33:27 tomas@stripped +1 -0
  rpl_tblmap.cc:
    use sql_alloc instead of my_malloc

  sql/rpl_tblmap.cc
    1.9 05/05/24 16:31:50 tomas@stripped +2 -7
    use sql_alloc instead of my_malloc

# 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:	tomas
# Host:	poseidon.ndb.mysql.com
# Root:	/home/tomas/wl2325-test

--- 1.8/sql/rpl_tblmap.cc	2005-05-24 15:02:48 +02:00
+++ 1.9/sql/rpl_tblmap.cc	2005-05-24 16:31:50 +02:00
@@ -19,10 +19,6 @@
 table_mapping::
 ~table_mapping()
 {
-  List_iterator_fast<entry> it(m_array);
-  entry *e;
-  while ((e= it++))
-    my_free(reinterpret_cast<char*>(e), MYF(MY_ALLOW_ZERO_PTR));
 }
 
 st_table* table_mapping::
@@ -46,14 +42,13 @@
 int table_mapping::
 expand()
 {
-  entry *tmp= (entry *)my_malloc(TABLE_ID_CHUNK*sizeof(entry),MYF(MY_WME));
+  entry *tmp= (entry *)sql_alloc(TABLE_ID_CHUNK*sizeof(entry));
   if (tmp == NULL)
     return ERR_MEMORY_ALLOCATION; // Memory allocation failed
-  m_array.push_back(tmp);
 
   entry *e_end= tmp+TABLE_ID_CHUNK-1;
   for (entry *e= tmp; e < e_end; e++)
-    e->next= e;
+    e->next= e+1;
   e_end->next= m_free;
   m_free= tmp;
   return 0;
Thread
bk commit into 5.1 tree (tomas:1.1873)tomas24 May