[tracker] TrackerMinerFS: Lower the severity of a warning.



commit df24f5deb3d696a6e7eac6a28f96813104dbdaa1
Author: Carlos Garnacho <carlos lanedo com>
Date:   Tue Sep 8 14:33:47 2009 +0200

    TrackerMinerFS: Lower the severity of a warning.
    
    Having a hanging cancellable is not warning worthy. Also, make sure it's NULL
    if process_file() returns FALSE.

 src/libtracker-miner/tracker-miner-fs.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/libtracker-miner/tracker-miner-fs.c b/src/libtracker-miner/tracker-miner-fs.c
index 8af3b77..dd3d678 100644
--- a/src/libtracker-miner/tracker-miner-fs.c
+++ b/src/libtracker-miner/tracker-miner-fs.c
@@ -491,7 +491,6 @@ item_add_or_update_cb (TrackerMinerFS       *fs,
 
 	if (error) {
 		g_warning ("Could not process '%s': %s", uri, error->message);
-
 	} else {
 		gchar *full_sparql;
 
@@ -538,7 +537,7 @@ item_add_or_update (TrackerMinerFS *fs,
 	gboolean processing;
 
 	if (fs->private->cancellable) {
-		g_warning ("Cancellable for older operation still around, destroying");
+		g_debug ("Cancellable for older operation still around, destroying");
 		g_object_unref (fs->private->cancellable);
 	}
 
@@ -552,6 +551,9 @@ item_add_or_update (TrackerMinerFS *fs,
 
 	if (!processing) {
 		g_object_unref (sparql);
+		g_object_unref (fs->private->cancellable);
+		fs->private->cancellable = NULL;
+
 		return TRUE;
 	} else {
 		fs->private->current_file = g_object_ref (file);



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