usemtime config variable needs to be global

This commit is contained in:
Jean-Francois Dockes
2014-12-09 15:58:23 +01:00
parent d630cbbaec
commit cd892ee1a7
4 changed files with 10 additions and 13 deletions
+3
View File
@@ -60,6 +60,8 @@ typedef pair<int,int> RclPII;
// We default to a case- and diacritics-less index for now
bool o_index_stripchars = true;
bool o_uptodate_test_use_mtime = false;
string RclConfig::o_localecharset;
string RclConfig::o_origcwd;
@@ -342,6 +344,7 @@ bool RclConfig::updateMainConfig()
static int m_index_stripchars_init = 0;
if (!m_index_stripchars_init) {
getConfParam("indexStripChars", &o_index_stripchars);
getConfParam("testmodifusemtime", &o_uptodate_test_use_mtime);
m_index_stripchars_init = 1;
}
+5
View File
@@ -379,4 +379,9 @@ class RclConfig {
// reset. When using multiple indexes, all must have the same value
extern bool o_index_stripchars;
// This global variable defines if we use mtime instead of ctime for
// up-to-date tests. This is mostly incompatible with xattr indexing,
// in addition to other issues. See recoll.conf comments.
extern bool o_uptodate_test_use_mtime;
#endif /* _RCLCONFIG_H_INCLUDED_ */