restore indexallfilenames==0 function

This commit is contained in:
Jean-Francois Dockes
2010-07-05 15:26:33 +02:00
parent 387b66e165
commit 1b8ce2fc72
3 changed files with 12 additions and 3 deletions
+5
View File
@@ -388,6 +388,11 @@ FsIndexer::processone(const std::string &fn, const struct stat *stp,
displayableBytes(stp->st_size).c_str(), fn.c_str()));
FileInterner interner(fn, stp, m_config, m_tmpdir, FileInterner::FIF_none);
if (!interner.ok()) {
// no indexing whatsoever in this case. This typically means that
// indexallfilenames is not set
return FsTreeWalker::FtwOk;
}
// File name transcoded to utf8 for indexation.
string charset = m_config->getDefCharset(true);