HPCC-11712 - Avoid write lock on disconnect unless neeeded

A connection disconnect was grabbing an exclusive lock to the
shared dataRWLock unconditionally, when it only needed it if it
was altering the store. This was causing extra contention and
thread serialization.

Signed-off-by: Jake Smith <jake.smith@lexisnexis.com>
HPCC-11777 Fix CLocalEnvironment cache thread safeness

Signed-off-by: Jake Smith <jake.smith@lexisnexis.com>
HPCC-11775 Improve efficiency of WUiterate in Sasha

WUiterate which scans and filters archives and online workunits,
accessed Dali in an inefficient way, especially in the case of
requesting a single workunit.

Signed-off-by: Jake Smith <jake.smith@lexisnexis.com>
HPCC-11775 Fix minor issues spotted in review

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

HPCC-11777 Fix CLocalEnvironment cache thread safeness

Reviewed-By: Gavin Halliday <gavin.halliday@lexisnexis.com>
Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>
HPCC-11808 Missing alias information from control:queries

Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>
HPCC-11808 Missing alias information from control:queries

Fix issue from review

Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>
Merge pull request #6120 from jakesmith/hpcc-11712

HPCC-11712 - Avoid write lock on disconnect unless needed

Reviewed-By: Gavin Halliday <gavin.halliday@lexisnexis.com>
Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>
HPCC-11775 Revert unfiltered test

Signed-off-by: Jake Smith <jake.smith@lexisnexis.com>
Merge pull request #6152 from richardkchapman/roxie-queries-alias

HPCC-11808 Missing alias information from control:queries

Reviewed-by: Gavin Halliday <ghalliday@hpccsystems.com>
HPCC-11775 Fix unrelated bug spotted during review

If before/after heads match, but have differing tail '-<n>'
extensions, no wildcard would be added and the iterator would
not pick them up.

Highly unlikely ever hit in practice.

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

HPCC-11775 Improve efficiency of WUiterate in Sasha

Reviewed-By: Gavin Halliday <gavin.halliday@lexisnexis.com>
Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>
Merge remote-tracking branch 'origin/candidate-4.2.6' into closedown-4.2.x

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