List:Commits« Previous MessageNext Message »
From:Mats Kindahl Date:August 20 2009 7:20am
Subject:Re: bzr commit into mysql-5.1-bugteam branch (zhenxing.he:2973)
Bug#37148
View as plain text  
Quick comment:

Alfranio Correia wrote:
[snip]

> === modified file 'sql/mysql_priv.h'
> --- a/sql/mysql_priv.h  2009-06-05 11:23:58 +0000
> +++ b/sql/mysql_priv.h  2009-07-13 04:01:35 +0000
> @@ -1025,8 +1025,8 @@ check_and_unset_inject_value(int value)
> 
>  #endif
> 
> -void write_bin_log(THD *thd, bool clear_error,
> -                   char const *query, ulong query_length);
> +int write_bin_log(THD *thd, bool clear_error,
> +                  char const *query, ulong query_length);
> 
>  /* sql_connect.cc */
>  int check_user(THD *thd, enum enum_server_command command,
> 
> 
> Here we have a funny function. It is defined in the current file,
> used by several modules, implemented in the sql/sql_table.cc and
> calls functions in the log.cc :)
> 
> We need to do a refactory here. I don't know if in the context
> of this bug. What do you think?

Yes, it is a funny function with a funny placement, but don't refactor it in the
context of this bug. I am working on splitting up mysql_priv.h, and after that
we can start to move functions to proper components. If you do the refactor now,
it will cause merge problems.

You have worse examples in the code than this, but more about that later.

Best wishes,
Mats Kindahl

-- 
Mats Kindahl
Senior Software Engineer
Database Technology Group
Sun Microsystems
Thread
bzr commit into mysql-5.1-bugteam branch (zhenxing.he:2973) Bug#37148He Zhenxing13 Jul
  • Re: bzr commit into mysql-5.1-bugteam branch (zhenxing.he:2973)Bug#37148Alfranio Correia13 Aug
    • Re: bzr commit into mysql-5.1-bugteam branch (zhenxing.he:2973)Bug#37148He Zhenxing19 Aug
      • Re: bzr commit into mysql-5.1-bugteam branch (zhenxing.he:2973)Bug#37148Alfranio Correia19 Aug
        • Re: bzr commit into mysql-5.1-bugteam branch (zhenxing.he:2973)Bug#37148He Zhenxing20 Aug
    • Re: bzr commit into mysql-5.1-bugteam branch (zhenxing.he:2973)Bug#37148Mats Kindahl20 Aug
      • Re: bzr commit into mysql-5.1-bugteam branch (zhenxing.he:2973)Bug#37148He Zhenxing20 Aug