[tracker/libtracker-miner] Move mtime check after check-file/directory signals emission.
- From: Carlos Garnacho <carlosg src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [tracker/libtracker-miner] Move mtime check after check-file/directory signals emission.
- Date: Wed, 19 Aug 2009 09:28:28 +0000 (UTC)
commit 7804a332f853c91009cae3c9e043218fda4857ec
Author: Carlos Garnacho <carlos lanedo com>
Date: Wed Aug 19 11:28:02 2009 +0200
Move mtime check after check-file/directory signals emission.
src/libtracker-miner/tracker-miner-process.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/src/libtracker-miner/tracker-miner-process.c b/src/libtracker-miner/tracker-miner-process.c
index af42b91..de69d35 100644
--- a/src/libtracker-miner/tracker-miner-process.c
+++ b/src/libtracker-miner/tracker-miner-process.c
@@ -540,18 +540,18 @@ should_process_file (TrackerMinerProcess *process,
{
gboolean should_process;
- if (!should_change_index_for_file (process, file)) {
- /* File is up-to-date in tracker-store */
- return FALSE;
- }
-
if (is_dir) {
g_signal_emit (process, signals[CHECK_DIRECTORY], 0, file, &should_process);
} else {
g_signal_emit (process, signals[CHECK_FILE], 0, file, &should_process);
}
- return should_process;
+ if (!should_process) {
+ return FALSE;
+ }
+
+ /* Check whether file is up-to-date in tracker-store */
+ return should_change_index_for_file (process, file);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]