[tracker] libtracker-miner: minor style changes
- From: Aleksander Morgado <aleksm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker] libtracker-miner: minor style changes
- Date: Wed, 23 Jun 2010 14:40:53 +0000 (UTC)
commit f1f4143ec40065331997da4890e51859b768faf6
Author: Aleksander Morgado <aleksander lanedo com>
Date: Wed Jun 23 16:21:58 2010 +0200
libtracker-miner: minor style changes
src/libtracker-miner/tracker-miner-fs.c | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/src/libtracker-miner/tracker-miner-fs.c b/src/libtracker-miner/tracker-miner-fs.c
index 3e14b86..91dd9f1 100644
--- a/src/libtracker-miner/tracker-miner-fs.c
+++ b/src/libtracker-miner/tracker-miner-fs.c
@@ -1960,10 +1960,12 @@ item_queue_get_next_file (TrackerMinerFS *fs,
queue_file = g_queue_pop_head (fs->private->items_deleted);
if (queue_file) {
*source_file = NULL;
+
if (check_ignore_next_update (fs, queue_file)) {
*file = NULL;
return QUEUE_IGNORE_NEXT_UPDATE;
}
+
if (process_data_find (fs, queue_file, TRUE)) {
*file = NULL;
/* Need to postpone event... */
@@ -1971,6 +1973,7 @@ item_queue_get_next_file (TrackerMinerFS *fs,
queue_file);
return QUEUE_WAIT;
}
+
*file = queue_file;
return QUEUE_DELETED;
}
@@ -2008,6 +2011,7 @@ item_queue_get_next_file (TrackerMinerFS *fs,
*source_file = queue_file;
return QUEUE_IGNORE_NEXT_UPDATE;
}
+
if (process_data_find (fs, queue_file, TRUE)) {
*file = NULL;
/* Need to postpone event... */
@@ -2015,6 +2019,7 @@ item_queue_get_next_file (TrackerMinerFS *fs,
queue_file);
return QUEUE_WAIT;
}
+
*file = queue_file;
*source_file = NULL;
return QUEUE_CREATED;
@@ -2025,8 +2030,10 @@ item_queue_get_next_file (TrackerMinerFS *fs,
if (queue_file) {
*file = queue_file;
*source_file = NULL;
+
if (check_ignore_next_update (fs, queue_file))
return QUEUE_IGNORE_NEXT_UPDATE;
+
if (process_data_find (fs, queue_file, TRUE)) {
*file = NULL;
/* Need to postpone event... */
@@ -2034,6 +2041,7 @@ item_queue_get_next_file (TrackerMinerFS *fs,
queue_file);
return QUEUE_WAIT;
}
+
return QUEUE_UPDATED;
}
@@ -2046,6 +2054,7 @@ item_queue_get_next_file (TrackerMinerFS *fs,
item_moved_data_free (data);
return QUEUE_IGNORE_NEXT_UPDATE;
}
+
if (process_data_find (fs, data->file, TRUE) ||
process_data_find (fs, data->source_file, TRUE)) {
*file = NULL;
@@ -2055,6 +2064,7 @@ item_queue_get_next_file (TrackerMinerFS *fs,
data); /* no need to create again */
return QUEUE_WAIT;
}
+
*file = g_object_ref (data->file);
*source_file = g_object_ref (data->source_file);
item_moved_data_free (data);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]