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



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!

/*
 * TODO: Ugly hack counting signals because the indexer is sending two
"Finished" signals
 *  and only the second really mean "finished processing modules".
 *
 * Saving the last backup file to help with debugging.
 */
static void
crawling_finished_cb (TrackerProcessor *processor, 
                      gpointer          user_data)
{
        GError *error = NULL;
        gulong *callback_id;
        static gint counter = 1; /* Changed to 1, was 0 */
        
        callback_id = user_data;

        if (++counter >= 2) {
                gchar *rebackup;

                g_debug ("Uninstalling initial crawling callback");
                g_signal_handler_disconnect (processor, *callback_id);

                if (g_file_test (get_ttl_backup_filename (), G_FILE_TEST_EXISTS)) {
                        org_freedesktop_Tracker_Indexer_restore_backup
(tracker_dbus_indexer_get_proxy (),
                                                                        get_ttl_backup_filename (),
                                                                        &error);



thomas


 regards,

Ivan

On 3/21/09, Martyn Russell <martyn imendio com> wrote:
Thomas Mittelstaedt wrote:
Hallo,

I use the svn trunk version, and after updating via "svn up" (built,
installed and restarted trackerd), I noticed, my tags were clobbered
(=deleted), again! How come?
Also, I noticed that the tags seem to be in
~/.cache/tracker/file-meta.db only and don't make it into common.db.

Database schema and version changed which means a reindex is forced. We
really should fix it though so personal data (like tags aren't included
in this). This is a legacy issue which needs resolving.

Sorry for the inconvenience here :(

--
Regards,
Martyn
_______________________________________________
tracker-list mailing list
tracker-list gnome org
http://mail.gnome.org/mailman/listinfo/tracker-list


-- 
Mit freundlichen Grüßen,
Thomas Mittelstaedt




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