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