usemtime config variable needs to be global
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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_ */
|
||||
|
||||
Reference in New Issue
Block a user