[tracker] Fixes NB#114955, Usage of CPU is about 100% during long time after...
- From: Martyn James Russell <mr src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [tracker] Fixes NB#114955, Usage of CPU is about 100% during long time after...
- Date: Wed, 9 Sep 2009 16:22:32 +0000 (UTC)
commit c0f5abc68287d6456b505bf232e2673562844147
Author: Martyn Russell <martyn lanedo com>
Date: Wed Sep 9 16:38:08 2009 +0100
Fixes NB#114955, Usage of CPU is about 100% during long time after...
src/libtracker-miner/tracker-monitor.c | 18 +++++++++++++++++-
1 files changed, 17 insertions(+), 1 deletions(-)
---
diff --git a/src/libtracker-miner/tracker-monitor.c b/src/libtracker-miner/tracker-monitor.c
index b29235b..588033f 100644
--- a/src/libtracker-miner/tracker-monitor.c
+++ b/src/libtracker-miner/tracker-monitor.c
@@ -1191,7 +1191,23 @@ libinotify_monitor_directory (TrackerMonitor *monitor,
flags = 0;
flags &= ~IN_FLAG_FILE_BASED;
- mask = IN_ALL_EVENTS;
+
+ /* Instead of use IN_ALL_EVENTS, we use these so we don't get
+ * spammed with events on downloads and big copies between
+ * directories.
+ *
+ * Missing now is:
+ * IN_ACCESS
+ * IN_MODIFY
+ * IN_CLOSE_NOWRITE
+ * IN_OPEN
+ */
+ mask = (IN_MOVED_FROM | IN_MOVED_TO | IN_MOVE_SELF |
+ IN_DELETE | IN_DELETE_SELF |
+ IN_CREATE |
+ IN_CLOSE_WRITE |
+ IN_ATTRIB |
+ IN_UNMOUNT);
/* For files */
/* flags |= IN_FLAG_FILE_BASED; */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]