Reworked after review. Part 1.

Signed-off-by: Attila Vamos <attila.vamos@gmail.com>
HPCC-9157 - Dfu server partition calculation not efficient when more than 2M
file sprayed

Updated based on the comments.
The publishHeaders reduced in one line of code therefore removed.

Signed-off-by: Attila Vamos <attila.vamos@gmail.com>
Merge branch 'HPCC-9157-improvement' into closedown-4.0.x

Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>
Merge remote-tracking branch 'origin/closedown-4.0.x'

Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>