From fff59f781411583586a2eb0d52dbb2e78cb084c6 Mon Sep 17 00:00:00 2001 From: Jean-Francois Dockes Date: Wed, 22 Feb 2017 16:10:32 +0100 Subject: [PATCH] missing cnf->setKeyDir() in processonefile could result in wrong local params being used (e.g. excludedmimetypes) --- src/index/fsindexer.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/index/fsindexer.cpp b/src/index/fsindexer.cpp index 3f43c2d8..5c254c1d 100644 --- a/src/index/fsindexer.cpp +++ b/src/index/fsindexer.cpp @@ -605,6 +605,11 @@ FsIndexer::processonefile(RclConfig *config, // without mime type will not be purged from the db, resulting // in possible 'cannot intern file' messages at query time... + // This is needed if we are in a separate thread than processone() + // (mostly always when multithreading). Needed esp. for + // excludedmimetypes, etc. + config->setKeyDir(path_getfather(fn)); + // Document signature. This is based on m/ctime and size and used // for the uptodate check (the value computed here is checked // against the stored one). Changing the computation forces a full