Switch to unified view

a/src/index/indexer.cpp b/src/index/indexer.cpp
1
#ifndef lint
1
#ifndef lint
2
static char rcsid[] = "@(#$Id: indexer.cpp,v 1.14 2005-11-10 08:47:49 dockes Exp $ (C) 2004 J.F.Dockes";
2
static char rcsid[] = "@(#$Id: indexer.cpp,v 1.15 2005-11-14 09:57:11 dockes Exp $ (C) 2004 J.F.Dockes";
3
#endif
3
#endif
4
#include <stdio.h>
4
#include <stdio.h>
5
#include <sys/stat.h>
5
#include <sys/stat.h>
6
#include <unistd.h>
6
#include <unistd.h>
7
7
...
...
166
    flg == FsTreeWalker::FtwDirReturn) {
166
    flg == FsTreeWalker::FtwDirReturn) {
167
    config->setKeyDir(fn);
167
    config->setKeyDir(fn);
168
    return FsTreeWalker::FtwOk;
168
    return FsTreeWalker::FtwOk;
169
    }
169
    }
170
170
171
    // Check db up to date ?
171
    // Check db up to date ? Doing this before file type
172
    // identification means that, if usesystemfilecommand is switched
173
    // from on to off it may happen that some files which are now
174
    // without mime type will not be purged from the db, resulting
175
    // into possible 'cannot intern file' messages at query time...
172
    if (!db.needUpdate(fn, stp)) {
176
    if (!db.needUpdate(fn, stp)) {
173
    LOGDEB(("indexfile: up to date: %s\n", fn.c_str()));
177
    LOGDEB(("indexfile: up to date: %s\n", fn.c_str()));
174
    return FsTreeWalker::FtwOk;
178
    return FsTreeWalker::FtwOk;
175
    }
179
    }
176
180