[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: (ITS#4514) deltasyncrepl logpurge bug



Yes, there's a bug in the parser; it's supposed to accept 1-5 digits for 
the days field but it only accepts exactly two digits. This is already 
fixed in CVS HEAD. (Also see ITS#4505 for a related parsing bug.)

The relevant patches are in overlays/acceslog.c revs 1.38-1.40 and 
1.44.  Unfortunately some new features have also been added in which 
probably won't work in a 2.3 tree so you can't just use the latest HEAD 
version now.

benp@reed.edu wrote:
> Full_Name: Ben Poliakoff
> Version: 2.3.21
> OS: Debian Sarge
> URL: ftp://ftp.openldap.org/incoming/
> Submission from: (NULL) (134.10.15.21)
>
>
> The logpurge option seems to not be working properly in a deltasyncrepl config. 
>  test043-delta-syncrepl fails when I make the following modification to
> slapd-deltasync-master.conf:
>
> --- slapd-deltasync-master.conf.orig    2006-04-28 16:53:29.933388660 -0700
> +++ slapd-deltasync-master.conf 2006-04-28 16:45:43.049024461 -0700
> @@ -73,5 +73,7 @@
>  logdb cn=log
>  logops writes
>  logsuccess true
> +# logpurge added by benp to see if it works in the test scenario
> +logpurge    7+00:00 1+00:00
>
>  #monitor#database      monitor
>
> slapd won't start.  Turning loglevel to 64 I see repeated errors like this:
>
> Apr 28 16:45:14 unagi slapd[31987]: ./testrun/slapd.1.conf: line 79: <logpurge>
> handler exited with 1!
>
> Without the logpurge line the test runs fine.
>
>
>   


-- 
  -- Howard Chu
  Chief Architect, Symas Corp.  http://www.symas.com
  Director, Highland Sun        http://highlandsun.com/hyc
  OpenLDAP Core Team            http://www.openldap.org/project/