List:Commits« Previous MessageNext Message »
From:Alfranio Correia Date:November 24 2009 12:58am
Subject:Re: bzr commit into mysql-5.1-bugteam branch (alfranio.correia:3160)
Bug#46364
View as plain text  
Hi

Libing,

Alfranio Correia wrote:
> Hi Libing,
> 
> Thank you for the review.
> 
> 
> Libing Song wrote:
>> Hi Alfranio,
>>
>> Nice work, but a problem need to be clarified.
>>
>> The option --ignore-causality introduces an another problem in SBM.
>> The following statements will cause a inconsistency between master and
>> slave.
>>
>> CREATE TABLE t1(c1 INTEGER) ENGINE=Innodb;
>> CREATE TABLE t2(c1 INTEGER) ENGINE=MyISAM;
>> BEGIN ;
>> INSERT INTO t1 VALUES (1),(2);
>> INSERT INTO t2 SELECT * FROM t1;
>> COMMIT;
>>
>> so, I think that locking the N_table before starting a transaction is
>> better.
> 
> I don't think we should do this but if you want to discuss this option
> I can elaborate my opinion against this idea.
> 
>> Maybe It is difficult to implement, however give users a advice is easy.
> 
> I agree with you. I think we should print a warning message in such case.
> 

I thought about this while changing the patch and think we should only document
this and not print any warning message.

In general, it is unsafe to mix non-transactional engines and transactional engines in 5.1
and we do not print any messages. So, I don't think we should start printing messages now.
We already changed the rep+3 to correctly print warning messages.

>> I propose --ignore-causality is a session variable which can be changed
>> at runtime,
>> if it has to be used.
>> this will reduce the option's influence.

Done.

> 
> I agree with you.
> 
> Cheers.
> 
Thread
bzr commit into mysql-5.1-bugteam branch (alfranio.correia:3160)Bug#46364Alfranio Correia3 Nov
  • Re: bzr commit into mysql-5.1-bugteam branch (alfranio.correia:3160)Bug#46364Libing Song15 Nov
    • Re: bzr commit into mysql-5.1-bugteam branch (alfranio.correia:3160)Bug#46364Alfranio Correia16 Nov
      • Re: bzr commit into mysql-5.1-bugteam branch (alfranio.correia:3160)Bug#46364Alfranio Correia24 Nov