[pgpool-hackers: 207] Re: Ideas for code cleanup

Bruce Momjian bruce at momjian.us
Fri Apr 12 08:41:35 JST 2013


On Fri, Apr 12, 2013 at 08:40:02AM +0900, Tatsuo Ishii wrote:
> > On Thu, Apr 11, 2013 at 11:42:59AM -0400, Bruce Momjian wrote:
> >> > > The goal is to allow the code to be more easily understood by new
> >> > > developers.  Would you like to see a patch?
> >> > 
> >> > Yes, please. Maybe you want to start from breaking main.c into several
> >> > files?
> >> 
> >> Sure. I will do that now and post a patch.
> > 
> > I started by just moving the pid/status-file processing functions to a
> > separate C file, so you could see how I am approaching it.  Patch
> > attached.
> 
> Thakns. I briefly looked into this and noticed that you modified
> Makefile.in.  You should modify Makefile.am because Makefile.in is
> generated automatically from Makefile.am.

Good catch.  Updated patch attached.

-- 
  Bruce Momjian  <bruce at momjian.us>        http://momjian.us
  EnterpriseDB                             http://enterprisedb.com

  + It's impossible for everything to be true. +
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pid.diff
Type: text/x-diff
Size: 14596 bytes
Desc: not available
URL: <http://www.sraoss.jp/pipermail/pgpool-hackers/attachments/20130411/c56bc591/attachment-0001.bin>


More information about the pgpool-hackers mailing list