List:Commits« Previous MessageNext Message »
From:antony Date:September 25 2006 6:00pm
Subject:bk commit into 5.1 tree (acurtis:1.2339) BUG#21610
View as plain text  
Below is the list of changes that have just been committed into a local
5.1 repository of antony. When antony 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-09-25 10:59:49-07:00, acurtis@stripped +1 -0
  Bug#21610
    "Loaded engine does not load after restart."
    Junk characters caused plugin load to fail silently.

  sql/sql_plugin.cc@stripped, 2006-09-25 10:59:45-07:00, acurtis@stripped +9 -7
    junk characters cause plugin load to fail.
    eliminate use of strlen().

# 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:	acurtis
# Host:	ltamd64.xiphis.org
# Root:	/home/antony/work2/p2-bug21610.2

--- 1.34/sql/sql_plugin.cc	2006-09-25 11:00:03 -07:00
+++ 1.35/sql/sql_plugin.cc	2006-09-25 11:00:03 -07:00
@@ -759,14 +759,16 @@
   while (!(error= read_record_info.read_record(&read_record_info)))
   {
     DBUG_PRINT("info", ("init plugin record"));
-    LEX_STRING name, dl;
-    name.str= get_field(&mem, table->field[0]);
-    name.length= strlen(name.str);
-    dl.str= get_field(&mem, table->field[1]);
-    dl.length= strlen(dl.str);
+    String str_name, str_dl;
+    get_field(&mem, table->field[0], &str_name);
+    get_field(&mem, table->field[1], &str_dl);
+    
+    LEX_STRING name= {(char *)str_name.ptr(), str_name.length()};
+    LEX_STRING dl= {(char *)str_dl.ptr(), str_dl.length()};
+
     if (plugin_add(&name, &dl, REPORT_TO_LOG))
-      DBUG_PRINT("warning", ("Couldn't load plugin named '%s' with soname '%s'.",
-                             name.str, dl.str));
+      sql_print_warning("Couldn't load plugin named '%s' with soname '%s'.",
+                        str_name.c_ptr(), str_dl.c_ptr());
   }
   if (error > 0)
     sql_print_error(ER(ER_GET_ERRNO), my_errno);
Thread
bk commit into 5.1 tree (acurtis:1.2339) BUG#21610antony25 Sep