HPCC-10301 Read enough data for mime header process when uploading files

When uploading files, a data buffer is used to process the file data
(1k) block by block. After one file is read, a part of file data for the
next file is left inside the data buffer. If the data does not contain
all of the mime headers for the file, the file data cannot be treated
properly. This fix checks the data size in the data buffer. If the
data buffer has less than 512 bytes, then I append the next 1K block
to the data buffer before processing.

Signed-off-by: Kevin Wang kevin.wang@lexisnexis.com
Merge pull request #5111 from wangkx/h10301

HPCC-10301 Read enough data for mime header process when uploading files

Reviewed-By: Anthony Fishbeck <anthony.fishbeck@lexisnexis.com>
Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>
HPCC-10374 - Fix sorted loader issue effecting global sort

If global sort had spilt, but 0 rows left in memory when
finished, it would incorrectly return a NULL stream.

Signed-off-by: Jake Smith <jake.smith@lexisnexis.com>
Merge pull request #5113 from jakesmith/hpcc-10374

HPCC-10374 - Fix sorted loader issue effecting global sort

Reviewed-By: Gavin Halliday <gavin.halliday@lexisnexis.com>
Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>
Merge remote-tracking branch 'origin/candidate-4.2.0' into closedown-4.2.x

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

Conflicts:
	version.cmake

Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>
HPCC-10333 Embedded Python may encounter undefined symbols

Due to bugs in the way that Python is build for some distros, it is necessary
to ensure that the libpython library is loaded with RTLD_GLOBAL set.

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