List:Commits« Previous MessageNext Message »
From:Ingo Strüwing Date:July 7 2008 2:32pm
Subject:Re: bzr push into mysql-6.0-backup branch (ingo.struewing:2650 to
2651)
View as plain text  
Hi Guilhem,

thank you.

Guilhem Bichot, 07.07.2008 16:06:
...
> Thanks for this enormous hack. Good comments.
> I'd put a "return;" instead of the "do {} while (0);",
> or I'd remove "end:" as well.

Yes, the hack can be better integrated with the function. I wanted to
keep it together in one section so that it can be removed easier, when
the issue is fixed cleanly.

Btw, the change in mi_examine_log.c can also be beautified. Since we
don't suppress updating of the index file on close any more, the boolean
"update_index_on_close" is no longer named properly. And a couple of
comments are misleading. When a final decision about restore locking is
made, this may need more updates. So we can defer it for now.

> 
> I wonder: Table_restore::post_restore() (which may include a repair)
> runs after the pieces which you fixed above. So, does a last bug lurk
> there?

I don't know if I understand the question correctly. But as far as I get
it, there should be no problem as close() should be called before
post_restore(). The share and other instances are fixed in close() now.
So later open()/close() should always work on the final data.

Btw, if we stick with open_and_lock_tables() for the tables in restore,
we should refactor the driver to work on the M_INFO instance that the
backup kernel provides. This would save us some mi_open()/mi_close() and
the search loop in my hack.

This would also implicitly make --external-locking work. At least with
restore.

Regards
Ingo
-- 
Ingo Strüwing, Database Group
Sun Microsystems GmbH, Sonnenallee 1, D-85551 Kirchheim-Heimstetten
Geschäftsführer: Thomas Schröder, Wolfgang Engels, Dr. Roland Bömer
Vorsitzender des Aufsichtsrates: Martin Häring   HRB München 161028
Thread
bzr push into mysql-6.0-backup branch (ingo.struewing:2650 to 2651) Ingo Struewing7 Jul
  • Re: bzr push into mysql-6.0-backup branch (ingo.struewing:2650 to2651)Guilhem Bichot7 Jul
    • Re: bzr push into mysql-6.0-backup branch (ingo.struewing:2650 to2651)Ingo Strüwing7 Jul
      • Re: bzr push into mysql-6.0-backup branch (ingo.struewing:2650 to2651)Guilhem Bichot7 Jul
        • Re: bzr push into mysql-6.0-backup branch (ingo.struewing:2650 to2651)Ingo Strüwing7 Jul
          • Re: bzr push into mysql-6.0-backup branch (ingo.struewing:2650 to2651)Guilhem Bichot10 Jul
  • Re: bzr push into mysql-6.0-backup branch (ingo.struewing:2650 to2651)Guilhem Bichot14 Jul
    • Re: bzr push into mysql-6.0-backup branch (ingo.struewing:2650 to2651)Ingo Strüwing14 Jul
      • Re: bzr push into mysql-6.0-backup branch (ingo.struewing:2650 to2651)Rafal Somla15 Jul