List:Commits« Previous MessageNext Message »
From:Guilhem Bichot Date:November 5 2007 9:25am
Subject:Re: bk commit into 5.0 tree (msvensson:1.2523) BUG#31741
View as plain text  
On Thu, Nov 01, 2007 at 10:29:40AM +0100, Magnus Svensson wrote:
> fre 2007-10-26 klockan 16:39 +0200 skrev Guilhem Bichot:
> 
> > aha, I didn't know we had append_file, I thought write_file would
> > append. But now I realize that that append_file exists and write_file
> > will fail if the file exists. With this in mind, there is one places
> > of your patch where the old system command used >> and you converted
> > it to write_file, which is thus theoretically incorrect:
> > 
> > diff -Nrup a/mysql-test/t/show_check.test b/mysql-test/t/show_check.test
> > --- a/mysql-test/t/show_check.test	2007-08-02 15:23:14 +02:00
> > +++ b/mysql-test/t/show_check.test	2007-10-22 10:56:23 +02:00
> > @@ -427,7 +427,9 @@ DROP TABLE t1;
> >  flush tables;
> >  
> >  # Create a junk frm file on disk
> > -system echo "this is a junk file for test" >>
> $MYSQLTEST_VARDIR/master-data/test/t1.frm ;
> > +write_file $MYSQLTEST_VARDIR/master-data/test/t1.frm;
> > +this is a junk file for test
> > +EOF
> > 
> 
> Yes, but looking a t the comment and the code above(where we just drop
> t1), I consider the >> a bug. ;)
> 
> ok to use "write_file"?

yes

-- 
   __  ___     ___ ____  __
  /  |/  /_ __/ __/ __ \/ /    Mr. Guilhem Bichot <guilhem@stripped>
 / /|_/ / // /\ \/ /_/ / /__   MySQL AB, Lead Software Engineer
/_/  /_/\_, /___/\___\_\___/   Bordeaux, France
       <___/   www.mysql.com   
Thread
bk commit into 5.0 tree (msvensson:1.2523) BUG#31741msvensson22 Oct
  • Re: bk commit into 5.0 tree (msvensson:1.2523) BUG#31741Guilhem Bichot25 Oct
    • Re: bk commit into 5.0 tree (msvensson:1.2523) BUG#31741Magnus Svensson26 Oct
      • Re: bk commit into 5.0 tree (msvensson:1.2523) BUG#31741Guilhem Bichot26 Oct
        • Re: bk commit into 5.0 tree (msvensson:1.2523) BUG#31741Magnus Svensson1 Nov
          • Re: bk commit into 5.0 tree (msvensson:1.2523) BUG#31741Guilhem Bichot5 Nov