Review Request 121817: Fix for crash which was introduced by RR 121480 (use QCollator instead of KStringHandler)

Mark Gaiser markg85 at gmail.com
Sun Jan 4 19:21:44 GMT 2015


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/121817/#review73091
-----------------------------------------------------------


+1
Ouch! Bye bye speed improvements ;-)

Stuff like this really makes me want to implement server side sorting in KIO (KIO is the server, Dolphin is a client using KIO).

- Mark Gaiser


On jan 3, 2015, 10:22 p.m., Emmanuel Pescosta wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/121817/
> -----------------------------------------------------------
> 
> (Updated jan 3, 2015, 10:22 p.m.)
> 
> 
> Review request for Dolphin.
> 
> 
> Bugs: 342316
>     http://bugs.kde.org/show_bug.cgi?id=342316
> 
> 
> Repository: kde-baseapps
> 
> 
> Description
> -------
> 
> While porting away from KStringHandler::naturalCompare to QCollator::compare, I had thought that QCollator is an drop-in replacement for KStringHanlder (also regarding to thread safety) - but according to the docs it's reentrant only (sry I missed that), surprisingly sorting with multiple threads never crashed here.
> 
> To fix the issue, we create a new thread local QCollator instance for every thread.
> 
> 
> Diffs
> -----
> 
>   dolphin/src/kitemviews/kfileitemmodel.h df7a5e3 
>   dolphin/src/kitemviews/kfileitemmodel.cpp 1c92a2c 
> 
> Diff: https://git.reviewboard.kde.org/r/121817/diff/
> 
> 
> Testing
> -------
> 
> Kai and Lane tested this patch and they confirmed that the patch fixes the crash for them.
> 
> 
> Thanks,
> 
> Emmanuel Pescosta
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.kde.org/mailman/private/kfm-devel/attachments/20150104/46ef16d7/attachment.htm>


More information about the kfm-devel mailing list