[Nepomuk] Review Request 110938: ResourceData: Do not send the dbus message unless the mainmodel is valid

Vishesh Handa me at vhanda.in
Wed Aug 7 07:30:04 UTC 2013



> On June 11, 2013, 9:59 p.m., Simeon Bird wrote:
> > Should something similar be done for Nepomuk2::ResourceData::removeProperty as well?
> 
> Simeon Bird wrote:
>     ping?

Thanks for reminding me.

I was just taking a look at this patch again, and are you sure it's thread safe? I notice that the resource manager is being locked before accessing any of its members, but in this case we're just accessing the model which has a mutex inside it. So it should be safe, right?

I don't want to commit something right before 4.12 release that causes a lot of crashes.

Also added the same code to removeProperty


- Vishesh


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


On June 10, 2013, 3:44 p.m., Vishesh Handa wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://git.reviewboard.kde.org/r/110938/
> -----------------------------------------------------------
> 
> (Updated June 10, 2013, 3:44 p.m.)
> 
> 
> Review request for Nepomuk and Simeon Bird.
> 
> 
> Description
> -------
> 
>    ResourceData: Do not send the dbus message unless the mainmodel is valid
>     
>     This way we avoid all those thousands of debug messages of
>     org.kde.nepomuk.DataManagement not existing because Nepomuk is not
>     running.
>     
>     BUG: 269442
> 
> 
> Diffs
> -----
> 
>   libnepomukcore/resource/resourcedata.cpp ba3f6f4 
> 
> Diff: http://git.reviewboard.kde.org/r/110938/diff/
> 
> 
> Testing
> -------
> 
> not really
> 
> 
> Thanks,
> 
> Vishesh Handa
> 
>

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


More information about the Nepomuk mailing list