Protect against potential act. init race

Possibly only an issue for global loop initialization, where slaves
subgraphs can cause requests to master as master graph is initializing

Signed-off-by: Jake Smith <jake.smith@lexisnexis.com>
Releasing crit too early

Need to hold on to critical section until end of block, to prevent the
possibility that another thread might use the objects being initialized
before they are

Signed-off-by: Jake Smith <jake.smith@lexisnexis.com>
Fix problems with new returning null on linux

- Use the placement form of new instead of overriding the new operator

- Disable a spurious warning from visual studion about non-matching
  delete() operators.

Signed-off-by: Gavin Halliday <gavin.halliday@lexisnexis.com>
Fix a complie warning in ws_dfu

Signed-off-by: Kevin Wang <kevin.wang@lexisnexis.com>
Fix problem incorrectly removing COUNTER from PROJECT

There was code in the grammar to check if a COUNTER was used in the
transform of a COUNT PROJECT, and if not report a warning and
convert it to a standard PROJECT.
However the check doesn't work in all cases because it is being
applied to an expression tree that hasn't been normalized.

Move the optimization to hqlopt where the expression tree has
been normalized.

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

Fix problem incorrectly removing COUNTER from PROJECT

Reviewed-By: Renato Golin <rengolin@hpccsystems.com>
Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>
Merge pull request #2210 from wangkx/warning_in_ws_dfu

Fix a complie warning in ws_dfu

Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>
Merge pull request #2184 from jakesmith/actinitrace

Protect against potential act. init race

Reviewed-By: Renato Golin <rengolin@hpccsystems.com>
Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>
FIX gh-2205 Use logfile creator for roxiePipe logfile

RoxiePipe should use the new component logfile creator to ensure logs
are placed in the correct location. Current code puts them in the wrong
place. Also fixed a problem where the logfile creator was appending '.log'
even when user specified a logfile.

Signed-off-by: William Whitehead <william.whitehead@lexisnexis.com>
Fix gh-2213 superfile desc's ignoring blank attrs

The code that checks and builds up the attributes for the
super (in CDistributedSuperFile::getFileDescriptor), ignored attributes
which were set to blank.

Signed-off-by: Jake Smith <jake.smith@lexisnexis.com>
Merge pull request #2206 from ghalliday/nullnew

Fix problems with new returning null on linux

Reviewed-By: Renato Golin <rengolin@hpccsystems.com>
Reviewed-By: Jake Smith <jake.smith@lexisnexis.com>
Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>
Merge pull request #2209 from RussWhitehead/roxiePipe

FIX gh-2205 Use logfile creator for roxiePipe logfile

Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>
Merge pull request #2214 from jakesmith/superattr-blank

Superattr blank

Reviewed-By: Renato Golin <rengolin@hpccsystems.com>
Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>
Move roxierow to roxiemem

Separation of roxiemem from roxiehelper, didn't need latter in other
engines, e.g. Thor.

Signed-off-by: Jake Smith <jake.smith@lexisnexis.com>
Switch Thor to RoxieMM and use new swapping paradigm

+group/local sort merged
 - group sort now spills
 - an overflowing local sort, used to spill last mem's worth unecessarily
+global sort, either all in mem, or all on disk.
 - refactored out minisort and overflow intercept handling for clarify
+local join, used to spill both sides unconditionally
+globaljoin, each side either all in mem or disk. It still unecessarily
spills first side to disk before gathernig other side (TODO)
+Spillable streams, consuming or shared, retain rows in mem. until need to spill. Used by various things.
+Unified the array classes, will be easier to add spilling elsewhere now, e.g. extend hashdedup.

Signed-off-by: Jake Smith <jake.smith@lexisnexis.com>
Up Thor version number
Merge pull request #2195 from jakesmith/thor-mm-rc1

Switch Thor to RoxieMM and use new swapping paradigm

Reviewed-By: Gavin Halliday <gavin.halliday@lexisnexis.com>
Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>
Merge branch 'candidate-3.8.x' into master

Including new thor memory manager

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