[Nepomuk] Review Request: Fix recently introduced bug in the handling of EventUnmount in filewatch

Commit Hook null at kde.org
Sat Nov 10 15:59:54 UTC 2012


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


This review has been submitted with commit 0be47089756fae0d4e187d81f31e58a4402a8660 by Simeon Bird to branch master.

- Commit Hook


On Nov. 9, 2012, 12:46 a.m., Simeon Bird wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> http://git.reviewboard.kde.org/r/107259/
> -----------------------------------------------------------
> 
> (Updated Nov. 9, 2012, 12:46 a.m.)
> 
> 
> Review request for Nepomuk, Vishesh Handa and Sebastian Trueg.
> 
> 
> Description
> -------
> 
> When we get an EventUnmount with path '/', do not break the while loop.
>   
> Breaking means that we lose any further events in the buffer,
> and that unmounted folders are not correctly removed from
> the path hashes.
>     
> Instead, fix the crash by changing the assert to just not trigger if path is / and the event is EventUnmount.
> Then do not emit unmounted with a meaningless path.
> 
> This fixes a potential bug before it was released anywhere
> 
> 
> Diffs
> -----
> 
>   services/filewatch/kinotify.cpp 54947fc 
> 
> Diff: http://git.reviewboard.kde.org/r/107259/diff/
> 
> 
> Testing
> -------
> 
> Compiled, ran for a while.
> 
> 
> Thanks,
> 
> Simeon Bird
> 
>

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


More information about the Nepomuk mailing list