# Re-adding the list in CC
Le Sun, 21 Aug 2011 23:40:28 +1200,
James Hurford <[email protected]> a écrit :

> On 21 August 2011 23:20, Adrien Bustany <[email protected]> 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
_______________________________________________
tracker-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/tracker-list

Reply via email to