List:Commits« Previous MessageNext Message »
From:Alfranio Correia Date:November 16 2009 10:36am
Subject:Re: bzr commit into mysql-5.1-bugteam branch (alfranio.correia:3160)
Bug#46364
View as plain text  
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 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.

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