[tracker/prioritized-crawling: 4/4] miner-fs: Set the priority flag on mounted volumes.



commit 80551719642f82f859912c80a7adb1cff8fe0b41
Author: Carlos Garnacho <carlosg gnome org>
Date:   Thu Feb 13 12:50:46 2014 +0100

    miner-fs: Set the priority flag on mounted volumes.
    
    This is so their content is inspected as soon as possible, even if tracker
    is busy crawling over local directories.

 src/miners/fs/tracker-miner-files.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/miners/fs/tracker-miner-files.c b/src/miners/fs/tracker-miner-files.c
index ea31eaf..e103dcb 100644
--- a/src/miners/fs/tracker-miner-files.c
+++ b/src/miners/fs/tracker-miner-files.c
@@ -2764,7 +2764,8 @@ miner_files_add_removable_or_optical_directory (TrackerMinerFiles *mf,
        indexing_tree = tracker_miner_fs_get_indexing_tree (TRACKER_MINER_FS (mf));
        flags = TRACKER_DIRECTORY_FLAG_RECURSE |
                TRACKER_DIRECTORY_FLAG_CHECK_MTIME |
-               TRACKER_DIRECTORY_FLAG_PRESERVE;
+               TRACKER_DIRECTORY_FLAG_PRESERVE |
+               TRACKER_DIRECTORY_FLAG_PRIORITY;
 
        if (tracker_config_get_enable_monitors (mf->private->config)) {
                flags |= TRACKER_DIRECTORY_FLAG_MONITOR;


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