From f18e32b6c0964df5762226bc48dbc900f3cac424 Mon Sep 17 00:00:00 2001 From: Jake Smith Date: Wed, 29 May 2024 15:14:08 +0100 Subject: [PATCH] HPCC-31959 Allow analyseFileHeaders to be aborted Signed-off-by: Jake Smith --- dali/ft/filecopy.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dali/ft/filecopy.cpp b/dali/ft/filecopy.cpp index 4c9732761ff..f1bb080049a 100644 --- a/dali/ft/filecopy.cpp +++ b/dali/ft/filecopy.cpp @@ -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);