MySQL Lists are EOL. Please join:

List:Commits« Previous MessageNext Message »
From:Georgi Kodinov Date:February 25 2010 3:37pm
Subject:bzr commit into mysql-5.1-bugteam branch (joro:3356) Bug#51208
View as plain text  
#At file:///home/kgeorge/mysql/work/B51208-5.1-bugteam/ based on revid:joro@stripped

 3356 Georgi Kodinov	2010-02-25
      Bug #51208: Extra string allocation from thd->mem_root 
      in sql_show.cc, find_files()
      
      Removed the extra allocation.

    modified:
      sql/sql_show.cc
=== modified file 'sql/sql_show.cc'
--- a/sql/sql_show.cc	2010-01-21 15:14:10 +0000
+++ b/sql/sql_show.cc	2010-02-25 09:58:57 +0000
@@ -522,12 +522,6 @@ find_files(THD *thd, List<LEX_STRING> *f
       file_name_len= filename_to_tablename(file->name, uname, sizeof(uname));
       if (wild && wild_compare(uname, wild, 0))
         continue;
-      if (!(file_name= 
-            thd->make_lex_string(file_name, uname, file_name_len, TRUE)))
-      {
-        my_dirend(dirp);
-        DBUG_RETURN(FIND_FILES_OOM);
-      }
     }
     else
     {


Attachment: [text/bzr-bundle] bzr/joro@sun.com-20100225095857-f6hsece50fas8f5m.bundle
Thread
bzr commit into mysql-5.1-bugteam branch (joro:3356) Bug#51208Georgi Kodinov25 Feb