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

Rob Crittenden rcritten at redhat.com
Wed Apr 13 14:49:59 UTC 2011


Martin Kosek wrote:
> 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
>

Ah right, forgot to attach updated patch.

rob
-------------- next part --------------
A non-text attachment was scrubbed...
Name: freeipa-rcrit-761-2-sort.patch
Type: text/x-patch
Size: 3495 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/freeipa-devel/attachments/20110413/ad9f198f/attachment.bin>


More information about the Freeipa-devel mailing list