HPCC-10552 Fix various leaks and out of bound accesses

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>
HPCC-10552 Close a couple of sockets in error situations

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>
HPCC-10552 Fix a couple of leaks

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>
HPCC-10552 Need to call malloc (to match called by setBuffer)

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>
HPCC-10552 Uninitialised variable and leak

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>
HPCC-10552 Break instead of return to ensure replytags,intertags deleted

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>
HPCC-10552 Missing va_end() calls and other minor issues

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>
HPCC-10552 More cleaning up and removing dead code

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>
HPCC-10552 A few more one-off errors reported by Coverity

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>
HPCC-10552 Correct typo from review

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>
HPCC-10534 Optimize IF(PROJECT, PROJECT)

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>
HPCC-10534 Add a debug option 'optimizeMax'
HPCC-10461 Add additional plugins for external databases

Added sqlite plugin as a POC

Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>
HPCC-10461 Add additional plugins for external databases

Added initial version of MySQL embed support

Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>
HPCC-10461 Add additional plugins for external databases

Additional MySQL fixes, including lazy streamed inputs, and minor fixup
spotted in code review.

Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>
HPCC-10555 Fix Out of Bounds array access

Signed-off-by: Gleb Aronsky <gleb.aronsky@lexisnexis.com>
HPCC-10547 Reduce contention for persist locks by timing out quicker

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>
HPCC-10547 Retain timeout for repeat=true (just in case)

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>
HPCC-10576 Add code to roxie to call Thor graphs

Copy code from hthor (rather than commoning up) since intention is to remove
the hthor version at some point

Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>
HPCC-10547 Ensure that the lock is released (when contended) for atleast 5s

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>