Re: [Tracker] [tracker svn trunk] tracker clobbering my tags after svn update, are not backed up to common.db



Thomas Mittelstaedt wrote:
Am Montag, den 23.03.2009, 19:45 +0100 schrieb Thomas Mittelstaedt:
Am Sonntag, den 22.03.2009, 13:45 +0200 schrieb Ivan Frade:
hi all,

 We have already a "backup" mechanism that export that user data to a
ttl file, and restores those data after reindex.

 Are you compiling tracker with libraptor enabled? It is only
optional, and this feature depends on it. If you have it, could you
also please check if there is a "tracker-user-data.ttl" file in
~/.local/share/tracker ?
Okay, installed libraptor and rebuilt tracker. It now creates a file
called tracker-user-data.ttl in ~/.local/share/tracker/data/, but
apparently fails to load it upon re-index, since I checked that file and
the tag information was there, then did reindex and the tags would not
be loaded.

the code in "if (++counter >= 2) {" below never got executed. I did set
counter to 1, then it got called and the tags restored!

The current hack doesn't work properly because it assumes you will have
conversations (GAIM logs) if you don't you only get Finished once and
this code never gets run.

What we need to do is intelligently know when to load this file. The
best time is after we have been idle for more than x seconds I think
since we can be "Finished" multiple times during the course of an index
(depending on how fast the system and how quickly the new items are send
to the indexer).

-- 
Regards,
Martyn



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