Re: [Tracker] What invokes writeback actions and what process carries out these actions



# Re-adding the list in CC
Le Sun, 21 Aug 2011 23:40:28 +1200,
James Hurford <terrasea gmail com> a écrit :

On 21 August 2011 23:20, Adrien Bustany <abustany gnome org> wrote:

Actually, updates from miner would also trigger writeback, but the
miner calls a method called IgnoreNextUpdate (iirc) to avoid a
mining/writeback loop. That mechanism will probably be replaced in
the future though, since it's racy.

Cheers

Adrien

Thanks Adrien

It's difficult to think of the miner invoking the writebacks, due to
them being the source of the information, but I can see there maybe
occasions when this behaviour maybe desired.  That does seem like a
source of future bugs though.


You're perfectly right, it's not desired.
I actually said rubbish in my last mail: the IgnoreNextUpdate call is
on the miner, not the store (sorry for the confusion). So the process
is:
1. Process X write a change to tracker store affecting a writeback
   property for file F
2. The store calls IgnoreNextUpdate(F) on the FS miner
3. The store calls the writeback process to write the actual changes to
   the file
4. The miner sees the update, but also knows that it should ignore it

Cheers

Adrien



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]