From c01698e462f4c28ac3ce997fc3907a68089c9202 Mon Sep 17 00:00:00 2001 From: ejurgensen Date: Fri, 21 Mar 2014 22:57:56 +0100 Subject: [PATCH] Filescanner should not watch for IN_MODIFY - it is bad for performance (triggers many db selects) and is useless anyway. --- src/filescanner.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/filescanner.c b/src/filescanner.c index 1cdc16e0..fe578685 100644 --- a/src/filescanner.c +++ b/src/filescanner.c @@ -788,7 +788,7 @@ process_directory(char *path, int flags) #if defined(__linux__) /* Add inotify watch */ - wi.wd = inotify_add_watch(inofd, path, IN_CREATE | IN_DELETE | IN_MODIFY | IN_CLOSE_WRITE | IN_MOVE | IN_DELETE | IN_MOVE_SELF); + wi.wd = inotify_add_watch(inofd, path, IN_CREATE | IN_DELETE | IN_CLOSE_WRITE | IN_MOVE | IN_DELETE | IN_MOVE_SELF); if (wi.wd < 0) { DPRINTF(E_WARN, L_SCAN, "Could not create inotify watch for %s: %s\n", path, strerror(errno));