[tracker-miners/wip/carlosg/delay-monitors: 12/19] libtracker-miner: Drop TRACKER_DIRECTORY_FLAG_CHECK_MTIME




commit 4ed4a8edcf144532ca1d4825db60d2d8dc23aa2f
Author: Carlos Garnacho <carlosg gnome org>
Date:   Sun Nov 8 18:20:58 2020 +0100

    libtracker-miner: Drop TRACKER_DIRECTORY_FLAG_CHECK_MTIME
    
    This flag does nothing anymore (mtime checks happen by default). Drop
    the flag, and every place that sets it.

 src/libtracker-miner/tracker-miner-enums.h         |  5 +-
 src/miners/fs/tracker-main.c                       |  1 -
 src/miners/fs/tracker-miner-files.c                | 20 +-------
 .../libtracker-miner/tracker-file-notifier-test.c  | 29 ++++-------
 tests/libtracker-miner/tracker-miner-fs-test.c     | 59 +++-------------------
 5 files changed, 19 insertions(+), 95 deletions(-)
---
diff --git a/src/libtracker-miner/tracker-miner-enums.h b/src/libtracker-miner/tracker-miner-enums.h
index b5b552bc1..99a2b3ea6 100644
--- a/src/libtracker-miner/tracker-miner-enums.h
+++ b/src/libtracker-miner/tracker-miner-enums.h
@@ -37,8 +37,6 @@ G_BEGIN_DECLS
  * TrackerDirectoryFlags:
  * @TRACKER_DIRECTORY_FLAG_NONE: No flags.
  * @TRACKER_DIRECTORY_FLAG_RECURSE: Should recurse in the directory.
- * @TRACKER_DIRECTORY_FLAG_CHECK_MTIME: Should check mtimes of items
- * in the directory.
  * @TRACKER_DIRECTORY_FLAG_MONITOR: Should setup monitors in the items
  * found in the directory.
  * @TRACKER_DIRECTORY_FLAG_IGNORE: Should ignore the directory
@@ -63,13 +61,12 @@ G_BEGIN_DECLS
 typedef enum {
        TRACKER_DIRECTORY_FLAG_NONE            = 0,
        TRACKER_DIRECTORY_FLAG_RECURSE         = 1 << 1,
-       TRACKER_DIRECTORY_FLAG_CHECK_MTIME     = 1 << 2,
+       TRACKER_DIRECTORY_FLAG_CHECK_DELETED   = 1 << 2,
        TRACKER_DIRECTORY_FLAG_MONITOR         = 1 << 3,
        TRACKER_DIRECTORY_FLAG_IGNORE          = 1 << 4,
        TRACKER_DIRECTORY_FLAG_PRESERVE        = 1 << 5,
        TRACKER_DIRECTORY_FLAG_PRIORITY        = 1 << 6,
        TRACKER_DIRECTORY_FLAG_NO_STAT         = 1 << 7,
-       TRACKER_DIRECTORY_FLAG_CHECK_DELETED   = 1 << 8,
 } TrackerDirectoryFlags;
 
 /**
diff --git a/src/miners/fs/tracker-main.c b/src/miners/fs/tracker-main.c
index 8ae7e321d..f7896e439 100644
--- a/src/miners/fs/tracker-main.c
+++ b/src/miners/fs/tracker-main.c
@@ -900,7 +900,6 @@ update_indexed_files_from_proxy (TrackerMinerFiles *miner,
                                tracker_indexing_tree_add (indexing_tree,
                                                           file,
                                                           TRACKER_DIRECTORY_FLAG_RECURSE |
-                                                          TRACKER_DIRECTORY_FLAG_CHECK_MTIME |
                                                           TRACKER_DIRECTORY_FLAG_MONITOR);
                                g_ptr_array_add (proxy_folders, g_object_ref (file));
                        } else {
diff --git a/src/miners/fs/tracker-miner-files.c b/src/miners/fs/tracker-miner-files.c
index f1604274c..3a18d441e 100644
--- a/src/miners/fs/tracker-miner-files.c
+++ b/src/miners/fs/tracker-miner-files.c
@@ -513,10 +513,6 @@ miner_files_initable_init (GInitable     *initable,
                        flags |= TRACKER_DIRECTORY_FLAG_MONITOR;
                }
 
-               if (mf->private->mtime_check) {
-                       flags |= TRACKER_DIRECTORY_FLAG_CHECK_MTIME;
-               }
-
                tracker_indexing_tree_add (indexing_tree, file, flags);
                g_object_unref (file);
        }
@@ -568,10 +564,6 @@ miner_files_initable_init (GInitable     *initable,
                        flags |= TRACKER_DIRECTORY_FLAG_MONITOR;
                }
 
-               if (mf->private->mtime_check) {
-                       flags |= TRACKER_DIRECTORY_FLAG_CHECK_MTIME;
-               }
-
                tracker_indexing_tree_add (indexing_tree, file, flags);
                g_object_unref (file);
        }
@@ -1009,7 +1001,6 @@ init_mount_points (TrackerMinerFiles *miner_files)
 
                                indexing_tree = tracker_miner_fs_get_indexing_tree (TRACKER_MINER_FS (miner));
                                flags = TRACKER_DIRECTORY_FLAG_RECURSE |
-                                       TRACKER_DIRECTORY_FLAG_CHECK_MTIME |
                                        TRACKER_DIRECTORY_FLAG_PRESERVE;
 
                                if (tracker_config_get_enable_monitors (miner_files->private->config)) {
@@ -1166,7 +1157,6 @@ mount_point_added_cb (TrackerStorage *storage,
 
                        config_file = g_file_new_for_path (l->data);
                        flags = TRACKER_DIRECTORY_FLAG_RECURSE |
-                               TRACKER_DIRECTORY_FLAG_CHECK_MTIME |
                                TRACKER_DIRECTORY_FLAG_PRESERVE;
 
                        if (tracker_config_get_enable_monitors (miner->private->config)) {
@@ -1202,7 +1192,7 @@ mount_point_added_cb (TrackerStorage *storage,
                     l = g_slist_next (l)) {
                        GFile *config_file;
 
-                       flags = TRACKER_DIRECTORY_FLAG_CHECK_MTIME;
+                       flags = TRACKER_DIRECTORY_FLAG_NONE;
 
                        if (tracker_config_get_enable_monitors (miner->private->config)) {
                                flags |= TRACKER_DIRECTORY_FLAG_MONITOR;
@@ -1601,10 +1591,6 @@ update_directories_from_new_config (TrackerMinerFS *mf,
                flags |= TRACKER_DIRECTORY_FLAG_MONITOR;
        }
 
-       if (priv->mtime_check) {
-               flags |= TRACKER_DIRECTORY_FLAG_CHECK_MTIME;
-       }
-
        /* Second add directories which are new */
        for (sl = new_dirs; sl; sl = sl->next) {
                const gchar *path;
@@ -1882,8 +1868,7 @@ miner_files_add_application_dir (TrackerMinerFiles   *mf,
 
        tracker_indexing_tree_add (indexing_tree, file,
                                   TRACKER_DIRECTORY_FLAG_RECURSE |
-                                  TRACKER_DIRECTORY_FLAG_MONITOR |
-                                  TRACKER_DIRECTORY_FLAG_CHECK_MTIME);
+                                  TRACKER_DIRECTORY_FLAG_MONITOR);
        g_free (path);
 
        mf->private->application_dirs = g_slist_prepend(mf->private->application_dirs, file);
@@ -2636,7 +2621,6 @@ 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_PRIORITY;
 
diff --git a/tests/libtracker-miner/tracker-file-notifier-test.c 
b/tests/libtracker-miner/tracker-file-notifier-test.c
index 211eb8d82..c4a201a25 100644
--- a/tests/libtracker-miner/tracker-file-notifier-test.c
+++ b/tests/libtracker-miner/tracker-file-notifier-test.c
@@ -441,7 +441,7 @@ test_file_notifier_crawling_non_recursive (TestCommonContext *fixture,
        CREATE_UPDATE_FILE (fixture, "non-recursive/bbb");
 
        test_common_context_index_dir (fixture, "non-recursive",
-                                      TRACKER_DIRECTORY_FLAG_CHECK_MTIME);
+                                      TRACKER_DIRECTORY_FLAG_NONE);
 
        tracker_file_notifier_start (fixture->notifier);
 
@@ -468,8 +468,7 @@ test_file_notifier_crawling_recursive (TestCommonContext *fixture,
        CREATE_UPDATE_FILE (fixture, "recursive/bbb");
 
        test_common_context_index_dir (fixture, "recursive",
-                                      TRACKER_DIRECTORY_FLAG_RECURSE |
-                                      TRACKER_DIRECTORY_FLAG_CHECK_MTIME);
+                                      TRACKER_DIRECTORY_FLAG_RECURSE);
 
        tracker_file_notifier_start (fixture->notifier);
 
@@ -503,11 +502,9 @@ test_file_notifier_crawling_non_recursive_within_recursive (TestCommonContext *f
        CREATE_UPDATE_FILE (fixture, "recursive/folder/non-recursive/folder/ddd");
 
        test_common_context_index_dir (fixture, "recursive",
-                                      TRACKER_DIRECTORY_FLAG_RECURSE |
-                                      TRACKER_DIRECTORY_FLAG_CHECK_MTIME);
+                                      TRACKER_DIRECTORY_FLAG_RECURSE);
        test_common_context_index_dir (fixture, "recursive/folder/non-recursive",
-                                      TRACKER_DIRECTORY_FLAG_NONE |
-                                      TRACKER_DIRECTORY_FLAG_CHECK_MTIME);
+                                      TRACKER_DIRECTORY_FLAG_NONE);
 
        tracker_file_notifier_start (fixture->notifier);
 
@@ -541,11 +538,9 @@ test_file_notifier_crawling_recursive_within_non_recursive (TestCommonContext *f
        CREATE_UPDATE_FILE (fixture, "non-recursive/folder/recursive/folder/ddd");
 
        test_common_context_index_dir (fixture, "non-recursive/folder/recursive",
-                                      TRACKER_DIRECTORY_FLAG_RECURSE |
-                                      TRACKER_DIRECTORY_FLAG_CHECK_MTIME);
+                                      TRACKER_DIRECTORY_FLAG_RECURSE);
        test_common_context_index_dir (fixture, "non-recursive",
-                                      TRACKER_DIRECTORY_FLAG_NONE |
-                                      TRACKER_DIRECTORY_FLAG_CHECK_MTIME);
+                                      TRACKER_DIRECTORY_FLAG_NONE);
 
        tracker_file_notifier_start (fixture->notifier);
 
@@ -577,11 +572,9 @@ test_file_notifier_crawling_ignore_within_recursive (TestCommonContext *fixture,
        CREATE_UPDATE_FILE (fixture, "recursive/folder/ignore/folder/ddd");
 
        test_common_context_index_dir (fixture, "recursive",
-                                      TRACKER_DIRECTORY_FLAG_RECURSE |
-                                      TRACKER_DIRECTORY_FLAG_CHECK_MTIME);
+                                      TRACKER_DIRECTORY_FLAG_RECURSE);
        test_common_context_index_dir (fixture, "recursive/folder/ignore",
-                                      TRACKER_DIRECTORY_FLAG_IGNORE |
-                                      TRACKER_DIRECTORY_FLAG_CHECK_MTIME);
+                                      TRACKER_DIRECTORY_FLAG_IGNORE);
 
        tracker_file_notifier_start (fixture->notifier);
 
@@ -687,8 +680,7 @@ test_file_notifier_monitor_updates_non_recursive (TestCommonContext *fixture,
        CREATE_UPDATE_FILE (fixture, "non-recursive/bbb");
 
        test_common_context_index_dir (fixture, "non-recursive",
-                                      TRACKER_DIRECTORY_FLAG_MONITOR |
-                                      TRACKER_DIRECTORY_FLAG_CHECK_MTIME);
+                                      TRACKER_DIRECTORY_FLAG_MONITOR);
 
        tracker_file_notifier_start (fixture->notifier);
        test_common_context_expect_results (fixture, expected_results,
@@ -735,8 +727,7 @@ test_file_notifier_monitor_updates_recursive (TestCommonContext *fixture,
 
        test_common_context_index_dir (fixture, "recursive",
                                       TRACKER_DIRECTORY_FLAG_RECURSE |
-                                      TRACKER_DIRECTORY_FLAG_MONITOR |
-                                      TRACKER_DIRECTORY_FLAG_CHECK_MTIME);
+                                      TRACKER_DIRECTORY_FLAG_MONITOR);
 
        tracker_file_notifier_start (fixture->notifier);
        test_common_context_expect_results (fixture, expected_results,
diff --git a/tests/libtracker-miner/tracker-miner-fs-test.c b/tests/libtracker-miner/tracker-miner-fs-test.c
index 889a81b3b..492c1cb66 100644
--- a/tests/libtracker-miner/tracker-miner-fs-test.c
+++ b/tests/libtracker-miner/tracker-miner-fs-test.c
@@ -400,7 +400,6 @@ test_recursive_indexing (TrackerMinerFSTestFixture *fixture,
        CREATE_UPDATE_FILE (fixture, "recursive/1/b");
        CREATE_UPDATE_FILE (fixture, "recursive/1/2/c");
        fixture_add_indexed_folder (fixture, "recursive",
-                                   TRACKER_DIRECTORY_FLAG_CHECK_MTIME |
                                    TRACKER_DIRECTORY_FLAG_RECURSE);
 
        tracker_miner_start (TRACKER_MINER (fixture->miner));
@@ -433,7 +432,7 @@ test_non_recursive_indexing (TrackerMinerFSTestFixture *fixture,
        CREATE_UPDATE_FILE (fixture, "non-recursive/1/b");
 
        fixture_add_indexed_folder (fixture, "non-recursive",
-                                   TRACKER_DIRECTORY_FLAG_CHECK_MTIME);
+                                   TRACKER_DIRECTORY_FLAG_NONE);
 
        tracker_miner_start (TRACKER_MINER (fixture->miner));
 
@@ -466,10 +465,9 @@ test_separate_recursive_and_non_recursive (TrackerMinerFSTestFixture *fixture,
        CREATE_UPDATE_FILE (fixture, "non-recursive/1/b");
 
        fixture_add_indexed_folder (fixture, "recursive",
-                                   TRACKER_DIRECTORY_FLAG_CHECK_MTIME |
                                    TRACKER_DIRECTORY_FLAG_RECURSE);
        fixture_add_indexed_folder (fixture, "non-recursive",
-                                   TRACKER_DIRECTORY_FLAG_CHECK_MTIME);
+                                   TRACKER_DIRECTORY_FLAG_NONE);
 
        tracker_miner_start (TRACKER_MINER (fixture->miner));
 
@@ -504,10 +502,9 @@ test_recursive_in_non_recursive (TrackerMinerFSTestFixture *fixture,
        CREATE_UPDATE_FILE (fixture, "non-recursive/1/recursive/2/d");
 
        fixture_add_indexed_folder (fixture, "non-recursive/1/recursive",
-                                   TRACKER_DIRECTORY_FLAG_CHECK_MTIME |
                                    TRACKER_DIRECTORY_FLAG_RECURSE);
        fixture_add_indexed_folder (fixture, "non-recursive",
-                                   TRACKER_DIRECTORY_FLAG_CHECK_MTIME);
+                                   TRACKER_DIRECTORY_FLAG_NONE);
 
        tracker_miner_start (TRACKER_MINER (fixture->miner));
 
@@ -541,10 +538,9 @@ test_non_recursive_in_recursive (TrackerMinerFSTestFixture *fixture,
        CREATE_UPDATE_FILE (fixture, "recursive/1/non-recursive/2/d");
 
        fixture_add_indexed_folder (fixture, "recursive",
-                                   TRACKER_DIRECTORY_FLAG_CHECK_MTIME |
                                    TRACKER_DIRECTORY_FLAG_RECURSE);
        fixture_add_indexed_folder (fixture, "recursive/1/non-recursive",
-                                   TRACKER_DIRECTORY_FLAG_CHECK_MTIME);
+                                   TRACKER_DIRECTORY_FLAG_NONE);
 
        tracker_miner_start (TRACKER_MINER (fixture->miner));
 
@@ -571,7 +567,6 @@ test_empty_root (TrackerMinerFSTestFixture *fixture,
        CREATE_FOLDER (fixture, "empty");
 
        fixture_add_indexed_folder (fixture, "empty",
-                                   TRACKER_DIRECTORY_FLAG_CHECK_MTIME |
                                    TRACKER_DIRECTORY_FLAG_RECURSE);
 
        tracker_miner_start (TRACKER_MINER (fixture->miner));
@@ -590,7 +585,6 @@ test_missing_root (TrackerMinerFSTestFixture *fixture,
        gchar *content;
 
        fixture_add_indexed_folder (fixture, "missing",
-                                   TRACKER_DIRECTORY_FLAG_CHECK_MTIME |
                                    TRACKER_DIRECTORY_FLAG_RECURSE);
 
        tracker_miner_start (TRACKER_MINER (fixture->miner));
@@ -620,7 +614,6 @@ test_skip_hidden_files (TrackerMinerFSTestFixture *fixture,
        tracker_indexing_tree_set_filter_hidden (indexing_tree, TRUE);
 
        fixture_add_indexed_folder (fixture, "recursive",
-                                   TRACKER_DIRECTORY_FLAG_CHECK_MTIME |
                                    TRACKER_DIRECTORY_FLAG_RECURSE);
 
        tracker_miner_start (TRACKER_MINER (fixture->miner));
@@ -648,7 +641,6 @@ test_index_hidden_files (TrackerMinerFSTestFixture *fixture,
        CREATE_UPDATE_FILE (fixture, "recursive/1/.hidden/2/a");
 
        fixture_add_indexed_folder (fixture, "recursive",
-                                   TRACKER_DIRECTORY_FLAG_CHECK_MTIME |
                                    TRACKER_DIRECTORY_FLAG_RECURSE);
 
        tracker_miner_start (TRACKER_MINER (fixture->miner));
@@ -688,7 +680,6 @@ test_file_filter_default_accept (TrackerMinerFSTestFixture *fixture,
        tracker_indexing_tree_add_filter (indexing_tree, TRACKER_FILTER_FILE, "a*");
 
        fixture_add_indexed_folder (fixture, "recursive",
-                                   TRACKER_DIRECTORY_FLAG_CHECK_MTIME |
                                    TRACKER_DIRECTORY_FLAG_RECURSE);
 
        tracker_miner_start (TRACKER_MINER (fixture->miner));
@@ -727,7 +718,6 @@ test_file_filter_default_deny (TrackerMinerFSTestFixture *fixture,
        tracker_indexing_tree_add_filter (indexing_tree, TRACKER_FILTER_FILE, "a*");
 
        fixture_add_indexed_folder (fixture, "recursive",
-                                   TRACKER_DIRECTORY_FLAG_CHECK_MTIME |
                                    TRACKER_DIRECTORY_FLAG_RECURSE);
 
        tracker_miner_start (TRACKER_MINER (fixture->miner));
@@ -766,7 +756,6 @@ test_directory_filter_default_accept (TrackerMinerFSTestFixture *fixture,
        tracker_indexing_tree_add_filter (indexing_tree, TRACKER_FILTER_DIRECTORY, "a*");
 
        fixture_add_indexed_folder (fixture, "recursive",
-                                   TRACKER_DIRECTORY_FLAG_CHECK_MTIME |
                                    TRACKER_DIRECTORY_FLAG_RECURSE);
 
        tracker_miner_start (TRACKER_MINER (fixture->miner));
@@ -807,7 +796,6 @@ test_directory_filter_default_deny (TrackerMinerFSTestFixture *fixture,
        tracker_indexing_tree_add_filter (indexing_tree, TRACKER_FILTER_DIRECTORY, "recursive");
 
        fixture_add_indexed_folder (fixture, "recursive",
-                                   TRACKER_DIRECTORY_FLAG_CHECK_MTIME |
                                    TRACKER_DIRECTORY_FLAG_RECURSE);
 
        tracker_miner_start (TRACKER_MINER (fixture->miner));
@@ -847,7 +835,6 @@ test_content_filter_default_accept (TrackerMinerFSTestFixture *fixture,
                                          TRACKER_FILTER_PARENT_DIRECTORY, "ignore");
 
        fixture_add_indexed_folder (fixture, "recursive",
-                                   TRACKER_DIRECTORY_FLAG_CHECK_MTIME |
                                    TRACKER_DIRECTORY_FLAG_RECURSE);
 
        tracker_miner_start (TRACKER_MINER (fixture->miner));
@@ -889,7 +876,6 @@ test_content_filter_default_deny (TrackerMinerFSTestFixture *fixture,
                                          TRACKER_FILTER_PARENT_DIRECTORY, "allow");
 
        fixture_add_indexed_folder (fixture, "recursive",
-                                   TRACKER_DIRECTORY_FLAG_CHECK_MTIME |
                                    TRACKER_DIRECTORY_FLAG_RECURSE);
 
        tracker_miner_start (TRACKER_MINER (fixture->miner));
@@ -929,12 +915,10 @@ test_content_filter_on_parent_root (TrackerMinerFSTestFixture *fixture,
 
        fixture_add_indexed_folder (fixture, "non-recursive",
                                    TRACKER_DIRECTORY_FLAG_PRESERVE |
-                                   TRACKER_DIRECTORY_FLAG_CHECK_DELETED |
-                                   TRACKER_DIRECTORY_FLAG_CHECK_MTIME);
+                                   TRACKER_DIRECTORY_FLAG_CHECK_DELETED);
        fixture_add_indexed_folder (fixture, "non-recursive/recursive",
                                    TRACKER_DIRECTORY_FLAG_PRESERVE |
                                    TRACKER_DIRECTORY_FLAG_CHECK_DELETED |
-                                   TRACKER_DIRECTORY_FLAG_CHECK_MTIME |
                                    TRACKER_DIRECTORY_FLAG_RECURSE);
 
        tracker_miner_start (TRACKER_MINER (fixture->miner));
@@ -959,12 +943,10 @@ test_content_filter_on_parent_root (TrackerMinerFSTestFixture *fixture,
 
        fixture_add_indexed_folder (fixture, "non-recursive",
                                    TRACKER_DIRECTORY_FLAG_PRESERVE |
-                                   TRACKER_DIRECTORY_FLAG_CHECK_DELETED |
-                                   TRACKER_DIRECTORY_FLAG_CHECK_MTIME);
+                                   TRACKER_DIRECTORY_FLAG_CHECK_DELETED);
        fixture_add_indexed_folder (fixture, "non-recursive/recursive",
                                    TRACKER_DIRECTORY_FLAG_PRESERVE |
                                    TRACKER_DIRECTORY_FLAG_CHECK_DELETED |
-                                   TRACKER_DIRECTORY_FLAG_CHECK_MTIME |
                                    TRACKER_DIRECTORY_FLAG_RECURSE);
 
        test_miner_reset_counters ((TestMiner *) fixture->miner);
@@ -991,7 +973,6 @@ test_non_monitored_create (TrackerMinerFSTestFixture *fixture,
 
        fixture_add_indexed_folder (fixture, "recursive",
                                    TRACKER_DIRECTORY_FLAG_PRESERVE |
-                                   TRACKER_DIRECTORY_FLAG_CHECK_MTIME |
                                    TRACKER_DIRECTORY_FLAG_RECURSE);
 
        tracker_miner_start (TRACKER_MINER (fixture->miner));
@@ -1011,7 +992,6 @@ test_non_monitored_create (TrackerMinerFSTestFixture *fixture,
        CREATE_UPDATE_FILE (fixture, "recursive/new/c");
 
        fixture_add_indexed_folder (fixture, "recursive",
-                                   TRACKER_DIRECTORY_FLAG_CHECK_MTIME |
                                    TRACKER_DIRECTORY_FLAG_RECURSE);
 
        fixture_iterate (fixture);
@@ -1037,7 +1017,6 @@ test_non_monitored_update (TrackerMinerFSTestFixture *fixture,
 
        fixture_add_indexed_folder (fixture, "recursive",
                                    TRACKER_DIRECTORY_FLAG_PRESERVE |
-                                   TRACKER_DIRECTORY_FLAG_CHECK_MTIME |
                                    TRACKER_DIRECTORY_FLAG_RECURSE);
 
        tracker_miner_start (TRACKER_MINER (fixture->miner));
@@ -1059,7 +1038,6 @@ test_non_monitored_update (TrackerMinerFSTestFixture *fixture,
        UPDATE_FILE_ATOMIC (fixture, "recursive/a", "b");
 
        fixture_add_indexed_folder (fixture, "recursive",
-                                   TRACKER_DIRECTORY_FLAG_CHECK_MTIME |
                                    TRACKER_DIRECTORY_FLAG_RECURSE);
 
        fixture_iterate (fixture);
@@ -1089,7 +1067,6 @@ test_non_monitored_delete (TrackerMinerFSTestFixture *fixture,
 
        fixture_add_indexed_folder (fixture, "recursive",
                                    TRACKER_DIRECTORY_FLAG_PRESERVE |
-                                   TRACKER_DIRECTORY_FLAG_CHECK_MTIME |
                                    TRACKER_DIRECTORY_FLAG_CHECK_DELETED |
                                    TRACKER_DIRECTORY_FLAG_RECURSE);
 
@@ -1115,7 +1092,6 @@ test_non_monitored_delete (TrackerMinerFSTestFixture *fixture,
 
        fixture_add_indexed_folder (fixture, "recursive",
                                    TRACKER_DIRECTORY_FLAG_PRESERVE |
-                                   TRACKER_DIRECTORY_FLAG_CHECK_MTIME |
                                    TRACKER_DIRECTORY_FLAG_CHECK_DELETED |
                                    TRACKER_DIRECTORY_FLAG_RECURSE);
 
@@ -1146,12 +1122,10 @@ test_non_monitored_move (TrackerMinerFSTestFixture *fixture,
 
        fixture_add_indexed_folder (fixture, "recursive",
                                    TRACKER_DIRECTORY_FLAG_PRESERVE |
-                                   TRACKER_DIRECTORY_FLAG_CHECK_MTIME |
                                    TRACKER_DIRECTORY_FLAG_CHECK_DELETED |
                                    TRACKER_DIRECTORY_FLAG_RECURSE);
        fixture_add_indexed_folder (fixture, "non-recursive",
                                    TRACKER_DIRECTORY_FLAG_PRESERVE |
-                                   TRACKER_DIRECTORY_FLAG_CHECK_MTIME |
                                    TRACKER_DIRECTORY_FLAG_CHECK_DELETED);
 
        tracker_miner_start (TRACKER_MINER (fixture->miner));
@@ -1178,11 +1152,9 @@ test_non_monitored_move (TrackerMinerFSTestFixture *fixture,
        MOVE_FILE (fixture, "recursive/d", "not-indexed/f");
 
        fixture_add_indexed_folder (fixture, "recursive",
-                                   TRACKER_DIRECTORY_FLAG_CHECK_MTIME |
                                    TRACKER_DIRECTORY_FLAG_CHECK_DELETED |
                                    TRACKER_DIRECTORY_FLAG_RECURSE);
        fixture_add_indexed_folder (fixture, "non-recursive",
-                                   TRACKER_DIRECTORY_FLAG_CHECK_MTIME |
                                    TRACKER_DIRECTORY_FLAG_CHECK_DELETED);
 
        fixture_iterate (fixture);
@@ -1209,7 +1181,6 @@ test_monitored_create (TrackerMinerFSTestFixture *fixture,
 
        fixture_add_indexed_folder (fixture, "recursive",
                                    TRACKER_DIRECTORY_FLAG_MONITOR |
-                                   TRACKER_DIRECTORY_FLAG_CHECK_MTIME |
                                    TRACKER_DIRECTORY_FLAG_RECURSE);
 
        tracker_miner_start (TRACKER_MINER (fixture->miner));
@@ -1249,7 +1220,6 @@ test_monitored_update (TrackerMinerFSTestFixture *fixture,
 
        fixture_add_indexed_folder (fixture, "recursive",
                                    TRACKER_DIRECTORY_FLAG_MONITOR |
-                                   TRACKER_DIRECTORY_FLAG_CHECK_MTIME |
                                    TRACKER_DIRECTORY_FLAG_RECURSE);
 
        tracker_miner_start (TRACKER_MINER (fixture->miner));
@@ -1294,7 +1264,6 @@ test_monitored_delete (TrackerMinerFSTestFixture *fixture,
 
        fixture_add_indexed_folder (fixture, "recursive",
                                    TRACKER_DIRECTORY_FLAG_MONITOR |
-                                   TRACKER_DIRECTORY_FLAG_CHECK_MTIME |
                                    TRACKER_DIRECTORY_FLAG_CHECK_DELETED |
                                    TRACKER_DIRECTORY_FLAG_RECURSE);
 
@@ -1362,12 +1331,10 @@ test_monitored_move (TrackerMinerFSTestFixture *fixture,
 
        fixture_add_indexed_folder (fixture, "recursive",
                                    TRACKER_DIRECTORY_FLAG_MONITOR |
-                                   TRACKER_DIRECTORY_FLAG_CHECK_MTIME |
                                    TRACKER_DIRECTORY_FLAG_CHECK_DELETED |
                                    TRACKER_DIRECTORY_FLAG_RECURSE);
        fixture_add_indexed_folder (fixture, "non-recursive",
                                    TRACKER_DIRECTORY_FLAG_MONITOR |
-                                   TRACKER_DIRECTORY_FLAG_CHECK_MTIME |
                                    TRACKER_DIRECTORY_FLAG_CHECK_DELETED);
 
        tracker_miner_start (TRACKER_MINER (fixture->miner));
@@ -1418,7 +1385,6 @@ test_monitored_atomic_replace (TrackerMinerFSTestFixture *fixture,
 
        fixture_add_indexed_folder (fixture, "recursive",
                                    TRACKER_DIRECTORY_FLAG_MONITOR |
-                                   TRACKER_DIRECTORY_FLAG_CHECK_MTIME |
                                    TRACKER_DIRECTORY_FLAG_CHECK_DELETED |
                                    TRACKER_DIRECTORY_FLAG_RECURSE);
 
@@ -1453,7 +1419,6 @@ test_event_queue_create_and_update (TrackerMinerFSTestFixture *fixture,
 
        fixture_add_indexed_folder (fixture, "recursive",
                                    TRACKER_DIRECTORY_FLAG_MONITOR |
-                                   TRACKER_DIRECTORY_FLAG_CHECK_MTIME |
                                    TRACKER_DIRECTORY_FLAG_RECURSE);
 
        tracker_miner_start (TRACKER_MINER (fixture->miner));
@@ -1491,7 +1456,6 @@ test_event_queue_create_and_delete (TrackerMinerFSTestFixture *fixture,
 
        fixture_add_indexed_folder (fixture, "recursive",
                                    TRACKER_DIRECTORY_FLAG_MONITOR |
-                                   TRACKER_DIRECTORY_FLAG_CHECK_MTIME |
                                    TRACKER_DIRECTORY_FLAG_RECURSE);
 
        tracker_miner_start (TRACKER_MINER (fixture->miner));
@@ -1519,7 +1483,6 @@ test_event_queue_create_and_move (TrackerMinerFSTestFixture *fixture,
 
        fixture_add_indexed_folder (fixture, "recursive",
                                    TRACKER_DIRECTORY_FLAG_MONITOR |
-                                   TRACKER_DIRECTORY_FLAG_CHECK_MTIME |
                                    TRACKER_DIRECTORY_FLAG_RECURSE);
 
        tracker_miner_start (TRACKER_MINER (fixture->miner));
@@ -1557,7 +1520,6 @@ test_event_queue_update_and_update (TrackerMinerFSTestFixture *fixture,
 
        fixture_add_indexed_folder (fixture, "recursive",
                                    TRACKER_DIRECTORY_FLAG_MONITOR |
-                                   TRACKER_DIRECTORY_FLAG_CHECK_MTIME |
                                    TRACKER_DIRECTORY_FLAG_RECURSE);
 
        tracker_miner_start (TRACKER_MINER (fixture->miner));
@@ -1604,7 +1566,6 @@ test_event_queue_update_and_delete (TrackerMinerFSTestFixture *fixture,
 
        fixture_add_indexed_folder (fixture, "recursive",
                                    TRACKER_DIRECTORY_FLAG_MONITOR |
-                                   TRACKER_DIRECTORY_FLAG_CHECK_MTIME |
                                    TRACKER_DIRECTORY_FLAG_RECURSE);
 
        tracker_miner_start (TRACKER_MINER (fixture->miner));
@@ -1644,7 +1605,6 @@ test_event_queue_update_and_move (TrackerMinerFSTestFixture *fixture,
 
        fixture_add_indexed_folder (fixture, "recursive",
                                    TRACKER_DIRECTORY_FLAG_MONITOR |
-                                   TRACKER_DIRECTORY_FLAG_CHECK_MTIME |
                                    TRACKER_DIRECTORY_FLAG_RECURSE);
 
        tracker_miner_start (TRACKER_MINER (fixture->miner));
@@ -1687,7 +1647,6 @@ test_event_queue_delete_and_create (TrackerMinerFSTestFixture *fixture,
 
        fixture_add_indexed_folder (fixture, "recursive",
                                    TRACKER_DIRECTORY_FLAG_MONITOR |
-                                   TRACKER_DIRECTORY_FLAG_CHECK_MTIME |
                                    TRACKER_DIRECTORY_FLAG_RECURSE);
 
        tracker_miner_start (TRACKER_MINER (fixture->miner));
@@ -1729,7 +1688,6 @@ test_event_queue_move_and_update (TrackerMinerFSTestFixture *fixture,
 
        fixture_add_indexed_folder (fixture, "recursive",
                                    TRACKER_DIRECTORY_FLAG_MONITOR |
-                                   TRACKER_DIRECTORY_FLAG_CHECK_MTIME |
                                    TRACKER_DIRECTORY_FLAG_RECURSE);
 
        tracker_miner_start (TRACKER_MINER (fixture->miner));
@@ -1774,7 +1732,6 @@ test_event_queue_move_and_create_origin (TrackerMinerFSTestFixture *fixture,
 
        fixture_add_indexed_folder (fixture, "recursive",
                                    TRACKER_DIRECTORY_FLAG_MONITOR |
-                                   TRACKER_DIRECTORY_FLAG_CHECK_MTIME |
                                    TRACKER_DIRECTORY_FLAG_RECURSE);
 
        tracker_miner_start (TRACKER_MINER (fixture->miner));
@@ -1817,7 +1774,6 @@ test_event_queue_move_and_delete (TrackerMinerFSTestFixture *fixture,
 
        fixture_add_indexed_folder (fixture, "recursive",
                                    TRACKER_DIRECTORY_FLAG_MONITOR |
-                                   TRACKER_DIRECTORY_FLAG_CHECK_MTIME |
                                    TRACKER_DIRECTORY_FLAG_RECURSE);
 
        tracker_miner_start (TRACKER_MINER (fixture->miner));
@@ -1858,7 +1814,6 @@ test_event_queue_move_and_move (TrackerMinerFSTestFixture *fixture,
 
        fixture_add_indexed_folder (fixture, "recursive",
                                    TRACKER_DIRECTORY_FLAG_MONITOR |
-                                   TRACKER_DIRECTORY_FLAG_CHECK_MTIME |
                                    TRACKER_DIRECTORY_FLAG_RECURSE);
 
        tracker_miner_start (TRACKER_MINER (fixture->miner));
@@ -1900,7 +1855,6 @@ test_event_queue_move_and_move_back (TrackerMinerFSTestFixture *fixture,
 
        fixture_add_indexed_folder (fixture, "recursive",
                                    TRACKER_DIRECTORY_FLAG_MONITOR |
-                                   TRACKER_DIRECTORY_FLAG_CHECK_MTIME |
                                    TRACKER_DIRECTORY_FLAG_RECURSE);
 
        tracker_miner_start (TRACKER_MINER (fixture->miner));
@@ -1946,7 +1900,6 @@ test_api_check_file (TrackerMinerFSTestFixture *fixture,
 
        fixture_add_indexed_folder (fixture, "recursive",
                                    TRACKER_DIRECTORY_FLAG_MONITOR |
-                                   TRACKER_DIRECTORY_FLAG_CHECK_MTIME |
                                    TRACKER_DIRECTORY_FLAG_RECURSE);
 
        tracker_miner_start (TRACKER_MINER (fixture->miner));


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