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

Simeon Bird bladud at gmail.com
Thu Aug 8 07:32:16 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?
> 
> Vishesh Handa wrote:
>     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

I *think* it is thread-safe, because the only part of the rm we are accessing is the model, which is only set once on initialization, which is guaranteed to happen before the storage service is advertised.

But now I have another worry: what happens if d->overrideModel is set? Can m_model be null in that case?
(is it ever set? I forget what it is for right now...)

Also I totally agree about being safe just before the release - I think its thread safe, but I wouldn't bet my house on it. 
How about delaying the commit until just after the 4.11 release, so it has a month of testing before finding its way into 4.11.1?


- Simeon


-----------------------------------------------------------
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/20130808/d2b22d87/attachment.html>


More information about the Nepomuk mailing list