fsindexer: avoid generating an empty bogus document when getting a subdoc error after the base doc has been seen
This commit is contained in:
parent
9c7a271c08
commit
9346c4db9c
@ -726,6 +726,11 @@ FsIndexer::processonefile(RclConfig *config,
|
|||||||
// We'll change the signature to ensure that the indexing will
|
// We'll change the signature to ensure that the indexing will
|
||||||
// be retried every time.
|
// be retried every time.
|
||||||
|
|
||||||
|
// If there is an error and the base doc was already seen,
|
||||||
|
// we're done
|
||||||
|
if (fis == FileInterner::FIError && hadNullIpath)
|
||||||
|
return FsTreeWalker::FtwOk;
|
||||||
|
|
||||||
// Internal access path for multi-document files. If empty, this is
|
// Internal access path for multi-document files. If empty, this is
|
||||||
// for the main file.
|
// for the main file.
|
||||||
if (doc.ipath.empty()) {
|
if (doc.ipath.empty()) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user