From 9346c4db9c41013881a6bd0801c0dcdce80b513f Mon Sep 17 00:00:00 2001 From: Jean-Francois Dockes Date: Wed, 29 Oct 2014 08:18:20 +0100 Subject: [PATCH] fsindexer: avoid generating an empty bogus document when getting a subdoc error after the base doc has been seen --- src/index/fsindexer.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/index/fsindexer.cpp b/src/index/fsindexer.cpp index 71b0bb2e..4b57accc 100644 --- a/src/index/fsindexer.cpp +++ b/src/index/fsindexer.cpp @@ -725,6 +725,11 @@ FsIndexer::processonefile(RclConfig *config, // We index at least the file name even if there was an error. // We'll change the signature to ensure that the indexing will // 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 // for the main file.