List:Commits« Previous MessageNext Message »
From:Mats Kindahl Date:December 2 2008 8:36am
Subject:Re: bzr commit into mysql-5.1 branch (aelkin:2712) Bug#40221
View as plain text  

Andrei Elkin wrote:
> Mats, hello.
> 
> To let you know the latest patch is
>   
>    http://lists.mysql.com/commits/60205
> 
> not one you have pasted.
> 
> As to your single remark,
> 
>> Andrei Elkin wrote:
>>> He Zhenxing, hello.

[snip]

>>>>> +  if (!all)
>>>>> +    trx_data->before_stmt_pos = MY_OFF_T_UNDEF;
>>>> I would suggest to wrap this in a function named something like
>>>> THD::binlog_end_stmt or THD::binlog_reset_stmt_begin.
>>>>
>>> Well, I am not sure in what is the best style.
>>> Personally, I would call a new 
>>>              
>>>             trx_data->reset_stmt();
>>>
>>> However I am not keen on making any change for this part for few
>>> reasons. First, there are other refactoring ideas. E.g
>>> an accessor and  a setter to trx_data->before_stmt_pos both are
>>> missed, instead trx_data->before_stmt_pos is defined public and used
>>> widely across the code. Second, mine proposal
>>> binlog_trx_data::reset_stmt(), if implemented ever, is not just
>>> trx_data->before_stmt_pos = MY_OFF_T_UNDEF but should include other
>>> activities such as flushing or removing the pending event.
> 
>> trx_data->reset() already does that.
> 
> I was trying to say a new method (not a part of the current fixes,
> merely an idea)
> 
> binlog_trx_data::reset_stmt()
> 
> would call trx_data->reset() as well as to carry out flushing at commit or
> removing at rollback.

OK.

/Matz
-- 
Mats Kindahl
Lead Software Developer
Replication Team
MySQL AB, www.mysql.com

Thread
bzr commit into mysql-5.1 branch (aelkin:2712) Bug#40221Andrei Elkin28 Nov
  • Re: bzr commit into mysql-5.1 branch (aelkin:2712) Bug#40221Mats Kindahl2 Dec
Re: bzr commit into mysql-5.1 branch (aelkin:2712) Bug#40221Mats Kindahl2 Dec
Re: bzr commit into mysql-5.1 branch (aelkin:2712) Bug#40221Mats Kindahl2 Dec