[Nepomuk] Review Request: ResourceWatcher: add *count() methods for resources, properties and types

Commit Hook null at kde.org
Wed Aug 8 15:47:11 UTC 2012


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://git.reviewboard.kde.org/r/105927/#review17116
-----------------------------------------------------------


This review has been submitted with commit 7bef7c53d3b9a971c203ed4391bf19ac79f381f5 by Vishesh Handa to branch KDE/4.9.

- Commit Hook


On Aug. 8, 2012, 2:15 p.m., Vishesh Handa wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://git.reviewboard.kde.org/r/105927/
> -----------------------------------------------------------
> 
> (Updated Aug. 8, 2012, 2:15 p.m.)
> 
> 
> Review request for Nepomuk and Sebastian Trueg.
> 
> 
> Description
> -------
> 
>     ResourceWatcher: add *count() methods for resources, properties and types
>     
>     These count methods are faster than returning the full list and then
>     counting the number of items in the list.
>     
>     This also fixes an infinite loop where a temporary Resource is created
>     when querying for the number of resources being watched. The temporary
>     Resource is deleted, which results in ResourceData::resetAll being
>     callled which again called ResourceWatcher::resources(), and the cycle
>     countinues.
> 
> 
> This addresses bug 304796.
>     http://bugs.kde.org/show_bug.cgi?id=304796
> 
> 
> Diffs
> -----
> 
>   libnepomukcore/datamanagement/resourcewatcher.h af20945 
>   libnepomukcore/datamanagement/resourcewatcher.cpp c7fc425 
>   libnepomukcore/resource/resourcedata.cpp f3590f3 
> 
> Diff: http://git.reviewboard.kde.org/r/105927/diff/
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> Vishesh Handa
> 
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/nepomuk/attachments/20120808/be3ccbef/attachment.html>


More information about the Nepomuk mailing list