List:Internals« Previous MessageNext Message »
From:Sergei Golubchik Date:April 9 2007 10:30am
Subject:Re: Review of second patch for Bug#25615, "Status command doesn't report anymore the Queries per second avg"
View as plain text  
Hi!

On Apr 08, joce@stripped wrote:
> Hi Sergei,
> 
> >>>--- mysql-5.2-ref/regex/Makefile.am        2007-03-02 19:24:43.000000000 
> +0100
> >>>+++ mysql-5.2/regex/Makefile.am    2007-03-23 00:47:50.000000000 +0100
> >>>@@ -17,7 +17,7 @@
> >>>
> >>>-LDADD= libregex.a $(top_builddir)/strings/libmystrings.a
> >>>+LDADD= libregex.a $(top_builddir)/strings/libmystrings.a          \
> >>>   $(top_builddir)/dbug/libdbug.a $(top_builddir)/mysys/libmysys.a \
> >>>   $(top_builddir)/strings/libmystrings.a
> >
> >I'm not sure it's a good idea to have libmystrings.a depending on
> >libmysys.a. It adds a circular dependency, as you can see.
> >  
> >What caused it ? malloc() ?
> 
> Actually, it's libmysys.a which depends on libmystrings.a through the
> use of strmake.  But libmystrings.a depends on libdbug.a because of
> the DBUG macro in decimal.c and libdbug.a depends on libmysys.a, hence
> the circular dependency.  Not sure how to solve this circular
> dependency.

Yes, this is nasty. I don't know how to fix it, may be merge everything
in one library ? Or split existing libraries, or move files between
them ?

Anyway, it cannot be considered a part of your bugfix of course :)
Here I'm only talking about the changes that you did, which made you to
add "libmystrings libdbug libmysys libmystrings" where libmystrings
alone sufficient. Looks like using decimal2string caused it.
Okay, until we have a solution, could you - as a workaround - remove
DBUG_PRINT's from decimal.c ? That should remove libmystrings dependency
on libdbug and libmysys.

Regards / Mit vielen Grüssen,
Sergei

-- 
   __  ___     ___ ____  __
  /  |/  /_ __/ __/ __ \/ /   Sergei Golubchik <serg@stripped>
 / /|_/ / // /\ \/ /_/ / /__  Senior Software Developer
/_/  /_/\_, /___/\___\_\___/  MySQL GmbH, Radlkoferstr. 2, D-81373 München
       <___/  Geschäftsführer: Hans von Bell, Kaj Arnö - HRB
München 162140
Thread
review of patch for Bug#25615, "Status command doesn't report anymore the Queries per second avg"Chad MILLER20 Mar
  • Re: review of patch for Bug#25615,"Status command doesn't report anymore the Queries per second avg"joce20 Mar
    • Re: review of patch for Bug#25615, "Status command doesn't report anymore the Queries per second avg"Chad MILLER20 Mar
      • Re: review of patch for Bug#25615, "Status command doesn't reportanymore the Queries per second avg"Jocelyn Fournier25 Mar
        • Re: debugger suggestionsChad MILLER26 Mar
          • Re: debugger suggestionsjoce26 Mar
      • [PATCH] Patch for Bug#25615, "Status command doesn't report anymorethe Queries per second avg"Jocelyn Fournier26 Mar
        • Review of second patch for Bug#25615, "Status command doesn't report anymore the Queries per second avg"Chad MILLER2 Apr
          • Re: Review of second patch for Bug#25615, "Status command doesn'treport anymore the Queries per second avg"Baron Schwartz2 Apr
            • Re: Review of second patch for Bug#25615, "Status command doesn't report anymore the Queries per second avg"Chad MILLER2 Apr
          • Re: Review of second patch for Bug#25615,joce2 Apr
          • Re: Review of second patch for Bug#25615, "Status command doesn't report anymore the Queries per second avg"Sergei Golubchik2 Apr
            • Re: Review of second patch for Bug#25615, "Status command doesn'treport anymore the Queries per second avg"joce@presence-pc.com8 Apr
              • Re: Review of second patch for Bug#25615, "Status command doesn't report anymore the Queries per second avg"Sergei Golubchik9 Apr
          • Re: Review of second patch for Bug#25615, "Status command doesn'treport anymore the Queries per second avg"joce@presence-pc.com9 Apr
            • Re: Review of second patch for Bug#25615, "Status command doesn'treport anymore the Queries per second avg"joce@presence-pc.com9 Apr
              • Re: Review of second patch for Bug#25615, "Status command doesn't report anymore the Queries per second avg"Sergei Golubchik9 Apr
              • Re: Review of second patch for Bug#25615, "Status command doesn'treport anymore the Queries per second avg"joce@presence-pc.com9 Apr
                • Re: Review of second patch for Bug#25615, "Status command doesn'treport anymore the Queries per second avg"joce@presence-pc.com9 Apr
                  • Review of fourth patch for Bug#25615, "Status command doesn't report anymore the Queries per second avg"Chad MILLER10 Apr
                    • Re: Review of fourth patch for Bug#25615, "Status command doesn'treport anymore the Queries per second avg"Jocelyn Fournier10 Apr