Skip to content

Commit

Permalink
Merge pull request #18710 from jakesmith/HPCC-31959-allow-abort-analy…
Browse files Browse the repository at this point in the history
…seheaders

HPCC-31959 Allow analyseFileHeaders to be aborted

Reviewed-by: Gavin Halliday <[email protected]>
Merged-by: Gavin Halliday <[email protected]>
  • Loading branch information
ghalliday authored May 31, 2024
2 parents 55868e4 + f18e32b commit 9bb17d9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dali/ft/filecopy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1668,6 +1668,9 @@ void FileSprayer::analyseFileHeaders(bool setcurheadersize)
unsigned numEmptyXml = 0;
ForEachItemIn(idx, sources)
{
if (isAborting())
throwError(DFTERR_CopyAborted);

FilePartInfo & cur = sources.item(idx);
StringBuffer s;
cur.filename.getPath(s);
Expand Down

0 comments on commit 9bb17d9

Please sign in to comment.