List:Commits« Previous MessageNext Message »
From:magnus.blaudd Date:June 7 2011 1:29pm
Subject:bzr commit into mysql-5.1-telco-7.0 branch (magnus.blaudd:4446)
View as plain text  
#At file:///data0/magnus/mysql/7.0/ based on revid:magnus.blaudd@stripped

 4446 magnus.blaudd@stripped	2011-06-07
      ndb
       - remove usage of my_malloc and my_free from ndbapi

    modified:
      storage/ndb/src/ndbapi/NdbIndexStatImpl.cpp
=== modified file 'storage/ndb/src/ndbapi/NdbIndexStatImpl.cpp'
--- a/storage/ndb/src/ndbapi/NdbIndexStatImpl.cpp	2011-06-07 12:48:01 +0000
+++ b/storage/ndb/src/ndbapi/NdbIndexStatImpl.cpp	2011-06-07 13:28:40 +0000
@@ -2193,7 +2193,7 @@ NdbIndexStatImpl::MemDefault::mem_alloc(
   {
     size += 4 - size % 4;
   }
-  Item* item = (Item*)my_malloc(sizeof(Item) + size, MYF(0));
+  Item* item = (Item*)malloc(sizeof(Item) + size);
   if (item != 0)
   {
     item->m_magic = MemMagic;
@@ -2214,7 +2214,7 @@ NdbIndexStatImpl::MemDefault::mem_free(v
     assert(item->m_magic == MemMagic);
     size_t size = item->m_size;
     item->m_magic = 0;
-    my_free(item, MYF(0));
+    free(item);
     assert(m_used >= size);
     m_used -= size;
   }


Attachment: [text/bzr-bundle] bzr/magnus.blaudd@oracle.com-20110607132840-jmdypw6pgr2z40jv.bundle
Thread
bzr commit into mysql-5.1-telco-7.0 branch (magnus.blaudd:4446) magnus.blaudd7 Jun