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

Re: 2.2.9 rel eng breaks paged results (ITS#3085)



>
> Problem could be that op->ors_slimit is not being initialized to the
> default soft limit if paged results is requested and there is no
> page results-specific limit set.

The problem is rather in reading the global size/time limits, which
doesn't runt hru the sanitization of the specific limits, as doen when
using the "limits" keyword.  A workaround is to use "limits * size=1500"
inside the backend; I'll fix the problem in the code.  Note that current
code enforces the size limits on the OVERALL number of entries returned,
even in paged results mode; use the size.prtotal=<n> switch to override.

Ando.

>
> -- Luke
>
> Index: limits.c
> =================================================================== RCS
> file: /repo/OpenLDAP/pkg/ldap/servers/slapd/limits.c,v
> retrieving revision 1.30.2.7
> diff -u -r1.30.2.7 limits.c
> --- limits.c    14 Apr 2004 23:08:16 -0000      1.30.2.7
> +++ limits.c    15 Apr 2004 06:33:09 -0000
> @@ -1019,8 +1019,9 @@
>                                 /* use the standard hard/soft limit if
> any */ op->ors_slimit =
> op->ors_limit->lms_s_hard;
>                         }
> +               }
>
> -               } else if ( op->ors_slimit == 0 ) {
> +               if ( op->ors_slimit == 0 ) {
>                         op->ors_slimit = op->ors_limit->lms_s_soft;
>
>                 } else {


-- 
Pierangelo Masarati
mailto:pierangelo.masarati@sys-net.it