From 9e58d7cd5bb250713c5a535b9e7873d60acf8127 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Tue, 24 Sep 2019 14:50:32 -0700 Subject: [PATCH] client: check for missing output files even if already NOT_PRESENT Handles case where output file disappears during client upgrade --- client/cs_files.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/client/cs_files.cpp b/client/cs_files.cpp index da53db6600..75ac88b331 100644 --- a/client/cs_files.cpp +++ b/client/cs_files.cpp @@ -507,16 +507,16 @@ void CLIENT_STATE::check_file_existence() { path, fip->nbytes, size ); } - // If an output file disappears before it's uploaded, - // flag the job as an error. - // - if (fip->status == FILE_NOT_PRESENT && fip->uploadable() && !fip->uploaded) { - RESULT* rp = file_info_to_result(fip); - if (rp) { - gstate.report_result_error( - *rp, "output file missing or invalid" - ); - } + } + // If an output file disappears before it's uploaded, + // flag the job as an error. + // + if (fip->status == FILE_NOT_PRESENT && fip->uploadable() && !fip->uploaded) { + RESULT* rp = file_info_to_result(fip); + if (rp) { + gstate.report_result_error( + *rp, "output file missing or invalid" + ); } } }