fix compile issue with idxthreads enabled
This commit is contained in:
parent
66b59c9963
commit
e8afc66d8f
@ -72,13 +72,13 @@ extern void *FsIndexerDbUpdWorker(void*);
|
||||
class InternfileTask {
|
||||
public:
|
||||
InternfileTask(const std::string &f, const struct stat *i_stp,
|
||||
map<string,string> lfields, vector<MDReaper> reapers)
|
||||
map<string,string> lfields, vector<FsIndexer::MDReaper> reapers)
|
||||
: fn(f), statbuf(*i_stp), localfields(lfields), mdreapers(reapers)
|
||||
{}
|
||||
string fn;
|
||||
struct stat statbuf;
|
||||
map<string,string> localfields;
|
||||
vector<MDReapers> mdreapers;
|
||||
vector<FsIndexer::MDReaper> mdreapers;
|
||||
};
|
||||
extern void *FsIndexerInternfileWorker(void*);
|
||||
#endif // IDX_THREADS
|
||||
@ -542,7 +542,7 @@ void *FsIndexerInternfileWorker(void * fsp)
|
||||
}
|
||||
LOGDEB0(("FsIndexerInternfileWorker: task fn %s\n", tsk->fn.c_str()));
|
||||
if (fip->processonefile(&myconf, tmpdir, tsk->fn, &tsk->statbuf,
|
||||
tsk->localfields) !=
|
||||
tsk->localfields, tsk->mdreapers) !=
|
||||
FsTreeWalker::FtwOk) {
|
||||
LOGERR(("FsIndexerInternfileWorker: processone failed\n"));
|
||||
tqp->workerExit();
|
||||
|
||||
@ -78,6 +78,12 @@ class FsIndexer : public FsTreeWalkerCB {
|
||||
/** Make signature for file up to date checks */
|
||||
static void makesig(const struct stat *stp, string& out);
|
||||
|
||||
/* Hold the description for an external metadata-gathering command */
|
||||
struct MDReaper {
|
||||
string fieldname;
|
||||
vector<string> cmdv;
|
||||
};
|
||||
|
||||
private:
|
||||
FsTreeWalker m_walker;
|
||||
RclConfig *m_config;
|
||||
@ -98,11 +104,6 @@ class FsIndexer : public FsTreeWalkerCB {
|
||||
|
||||
// Same idea with the metadata-gathering external commands,
|
||||
// (e.g. used to reap tagging info: "tmsu tags %f")
|
||||
/* Hold the description for an external metadata-gathering command */
|
||||
struct MDReaper {
|
||||
string fieldname;
|
||||
vector<string> cmdv;
|
||||
};
|
||||
bool m_havemdreapers;
|
||||
string m_smdreapers;
|
||||
vector<MDReaper> m_mdreapers;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user