[tracker] libtracker-miner: Set inotify limits for 'GInotifyFileBackend' too



commit 97f409b503f0e842ed512730130f110a3555d972
Author: Iain Lane <iain orangesquash org uk>
Date:   Tue May 12 14:48:32 2015 +0100

    libtracker-miner: Set inotify limits for 'GInotifyFileBackend' too
    
    As of GLib 2.45.1, the inotify monitor backend is called this.

 src/libtracker-miner/tracker-monitor.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/libtracker-miner/tracker-monitor.c b/src/libtracker-miner/tracker-monitor.c
index 327882f..b0a47cf 100644
--- a/src/libtracker-miner/tracker-monitor.c
+++ b/src/libtracker-miner/tracker-monitor.c
@@ -281,7 +281,8 @@ tracker_monitor_init (TrackerMonitor *object)
                name = g_type_name (priv->monitor_backend);
 
                /* Set limits based on backend... */
-               if (strcmp (name, "GInotifyDirectoryMonitor") == 0) {
+               if (strcmp (name, "GInotifyDirectoryMonitor") == 0 ||
+                   strcmp (name, "GInotifyFileMonitor") == 0) {
                        /* Using inotify */
                        g_message ("Monitor backend is Inotify");
 


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