|
a/src/internfile/internfile.cpp |
|
b/src/internfile/internfile.cpp |
|
... |
|
... |
412 |
if (fetcher == 0) {
|
412 |
if (fetcher == 0) {
|
413 |
LOGERR(("FileInterner:: no backend\n"));
|
413 |
LOGERR(("FileInterner:: no backend\n"));
|
414 |
return;
|
414 |
return;
|
415 |
}
|
415 |
}
|
416 |
DocFetcher::RawDoc rawdoc;
|
416 |
DocFetcher::RawDoc rawdoc;
|
417 |
string data;
|
|
|
418 |
if (!fetcher->fetch(cnf, idoc, rawdoc)) {
|
417 |
if (!fetcher->fetch(cnf, idoc, rawdoc)) {
|
419 |
LOGERR(("FileInterner:: fetcher failed\n"));
|
418 |
LOGERR(("FileInterner:: fetcher failed\n"));
|
420 |
return;
|
419 |
return;
|
421 |
}
|
420 |
}
|
422 |
switch (rawdoc.kind) {
|
421 |
switch (rawdoc.kind) {
|
423 |
case DocFetcher::RawDoc::RDK_FILENAME:
|
422 |
case DocFetcher::RawDoc::RDK_FILENAME:
|
424 |
init(rawdoc.data, &rawdoc.st, cnf, flags, &idoc.mimetype);
|
423 |
init(rawdoc.data, &rawdoc.st, cnf, flags, &idoc.mimetype);
|
425 |
break;
|
424 |
break;
|
426 |
case DocFetcher::RawDoc::RDK_DATA:
|
425 |
case DocFetcher::RawDoc::RDK_DATA:
|
427 |
init(data, cnf, flags, idoc.mimetype);
|
426 |
init(rawdoc.data, cnf, flags, idoc.mimetype);
|
428 |
break;
|
427 |
break;
|
|
|
428 |
default:
|
|
|
429 |
LOGERR(("FileInterner::FileInterner(idoc): bad rawdoc kind ??\n"));
|
429 |
}
|
430 |
}
|
430 |
return;
|
431 |
return;
|
431 |
}
|
432 |
}
|
432 |
|
433 |
|
433 |
bool FileInterner::makesig(RclConfig *cnf, const Rcl::Doc& idoc, string& sig)
|
434 |
bool FileInterner::makesig(RclConfig *cnf, const Rcl::Doc& idoc, string& sig)
|