HPCC-8907 Fix potential core/internal error constant folding CASE

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>
Merge pull request #4048 from ghalliday/issue8907

HPCC-8907 Fix potential core/internal error constant folding CASE

Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>
HPCC-8911 - Deadlock adding duplicate subfile to super

If an existing subfile was added to a super, the transaction
mechanism would cause a locking deadlock on the 2nd add.
The 2nd add would attempt to gain an exclusive lock, having
already lookup the super+sub for read, thereby locking.
The transaction mechanism needs to check that the subfile
is not part of the super before that happens.

Signed-off-by: Jake Smith <jake.smith@lexisnexis.com>
HPCC-8908 - Std distributor not reset in child query, lost recs

The standard distributor (as opposed to the pull distributor) was
not being fully reset when restarted - which effects distributors
in child queries, e.g. in a LOOP or GRAPH.
As a consequence, after the 1st iteration of LOOP/GRAPH,
distributed rows were received but throw away.

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

HPCC-8908 - Std distributor not reset in child query, lost recs

Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>
Merge pull request #4053 from jakesmith/hpcc-8911

HPCC-8911 - Deadlock adding duplicate subfile to super

Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>
Community Edition 3.10.4-5rc Release Candidate 5

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

Conflicts:
	version.cmake

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