[Freeipa-devel] [PATCH] 761 Sort entries on *-find commands

Martin Kosek mkosek at redhat.com
Wed Apr 13 06:37:16 UTC 2011


On Tue, 2011-04-12 at 16:56 -0400, Rob Crittenden wrote:
> Martin Kosek wrote:
> > On Wed, 2011-03-30 at 17:14 -0400, Rob Crittenden wrote:
> >> Sort output on find commands based on the baseldap LDAPSearch class.
> >>
> >> A couple tests had to be modified to match the new order.
> >>
> >> ticket 794
> >>
> >> rob
> >
> > The patch works fine except the case when entries are being added in
> > post_callback. Check this search:
> >
> > ipa permission-find --permissions=write
> >
> > The result is not sorted. I suggest moving the sort process after the
> > self.POST_CALLBACKS calls.
> >
> > What about performance issues? May somebody want to disable the sorting?
> > (e.g. --nosort option).
> >
> > Martin
> 
> I think the timing would only be a problem if the sizelimit is made very 
> large. The amount of time with/without sorting was negligible. I think 
> we're safe.
> 
> rob

I agree.

What do you think about my first comment? The patch fails to sort
correctly when the entries are being added in the post_callback.

Martin




More information about the Freeipa-devel mailing list