List:Commits« Previous MessageNext Message »
From:Øystein Grøvlen Date:August 13 2008 9:29am
Subject:Re: bzr commit into mysql-6.0-backup branch (jorgen.loland:2676)
Bug#38624
View as plain text  
Jørgen Løland wrote:
> Unfortunately, I think both arguments make sense. I'm not sure if we
> should scatter the code with thousands of DBUG_EXECUTE_IF's,

That is my point.  Adding one does not hurt, but making it a pattern
would IMO make the code less readable.

> but the test did ensure me that the fix was correct.

Did it really?  I think the test ensured you that it was safe for
doSerialize to return TRUE.  The code you fixed is not executed by the
test.  Neither does the test show a case where is evident that
ignoring a failure in open_tables is wrong.

My opinion is that for errors found during code reading, it does not
make sense to create a regression tests unless you are able to come up
with a scenario where the test could occur.  (That does not mean it
the code should not be fixed.

> Should I put this on hold until we have had the next team meeting? Since 
> team tree is currently frozen, there's no additional delay involved.

I will not insist on any changes, just do not make it a habit to add
DBUG_EXECUTE_IF's.

-- 
Øystein
Thread
bzr commit into mysql-6.0-backup branch (jorgen.loland:2676) Bug#38624Jorgen Loland8 Aug
  • Re: bzr commit into mysql-6.0-backup branch (jorgen.loland:2676)Bug#38624Øystein Grøvlen11 Aug
    • RE: bzr commit into mysql-6.0-backup branch (jorgen.loland:2676) Bug#38624Chuck Bell11 Aug
      • Re: bzr commit into mysql-6.0-backup branch (jorgen.loland:2676)Bug#38624Øystein Grøvlen12 Aug
        • RE: bzr commit into mysql-6.0-backup branch (jorgen.loland:2676) Bug#38624Chuck Bell12 Aug
          • Re: bzr commit into mysql-6.0-backup branch (jorgen.loland:2676)Bug#38624Jørgen Løland13 Aug
            • Re: bzr commit into mysql-6.0-backup branch (jorgen.loland:2676)Bug#38624Øystein Grøvlen13 Aug
              • Re: bzr commit into mysql-6.0-backup branch (jorgen.loland:2676)Bug#38624Jørgen Løland13 Aug