HPCC-219 Not reporting errors due to locked files

Use a new flag RTM_LOCK_HOLD to indicate locks that are held long-term, and
set it on the file locks that Roxie holds.

This should allow clients to test this lock and behave differently if set.

Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>
HPCC-219 Not reporting errors due to locked files

Move some functions into private section of CLockInfo class, prior to minor
reworking.

Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>
HPCC-219 Not reporting errors due to locked files

First attempt at causing locks to fail early when marked as "held".

Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>
HPCC-8966 - Provide a context for GetGlobalUniqueIds

Add an IEngineContext for context code to conditionally use
where needed. The need 1st was for GetGlobalUniqueIds to
differentiate it's behaviour depending on engine context and
in particular whether it was being executed from a Thor slave
or not.

Signed-off-by: Jake Smith <jake.smith@lexisnexis.com>
HPCC-219 Not reporting errors due to locked files

Changes in response to code review.

Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>
HPCC-8971 Optimize SEQUENTIAL of a single action.

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>
HPCC-8665 Fix the types of link counted arguments to out of line functions

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

HPCC-8971 Optimize SEQUENTIAL of a single action.

Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>
Merge pull request #4095 from richardkchapman/roxie-hold-locks

Roxie hold locks

Reviewed-by: Gavin Halliday <ghalliday@hpccsystems.com>
HPCC-2998 Some calls to getRecordSize(NULL) remain

Removed some calls in dead code.

Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>
HPCC-8586 Remove code that tries to percolate maxlength when projecting

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>
Merge pull request #4096 from jakesmith/hpcc-8966

HPCC-8966 - Provide a context for GetGlobalUniqueIds

Reviewed-By: Gavin Halliday <gavin.halliday@lexisnexis.com>
Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>
Merge pull request #4104 from ghalliday/issue8665

HPCC-8665 Fix the types of link counted arguments to out of line functions

Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>
HPCC-2998 Some calls to getRecordSize(NULL) remain

Removed some more relatively simple cases.

Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>
Merge pull request #4106 from ghalliday/issue8586

HPCC-8586 Remove code that tries to percolate maxlength when projecting

Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>
Merge pull request #4105 from richardkchapman/getRecordSize-NULL

HPCC-2998 Some calls to getRecordSize(NULL) remain

Reviewed-by: Gavin Halliday <ghalliday@hpccsystems.com>
HPCC-8973 Fix build break with huge page support

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

HPCC-8973 Fix build break with huge page support

Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>
HPCC-8976 - Fix suspect code in CSocket::write_multiple

A counter tracking how much left to send was incorrectly
reduced. When it hit zero it should have wrote last write and exited.
But due to a typo' it was not being reduced as intended.

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

HPCC-8976 - Fix suspect code in CSocket::write_multiple

Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>