|
@@ -4393,12 +4393,13 @@ class CEnvironmentClusterInfo: implements IConstWUClusterInfo, public CInterface
|
|
|
unsigned clusterWidth;
|
|
|
unsigned roxieRedundancy;
|
|
|
unsigned channelsPerNode;
|
|
|
+ unsigned numberOfSlaveLogs;
|
|
|
int roxieReplicateOffset;
|
|
|
|
|
|
public:
|
|
|
IMPLEMENT_IINTERFACE;
|
|
|
CEnvironmentClusterInfo(const char *_name, const char *_prefix, const char *_alias, IPropertyTree *agent, IArrayOf<IPropertyTree> &thors, IPropertyTree *roxie)
|
|
|
- : name(_name), prefix(_prefix), alias(_alias), roxieRedundancy(0), channelsPerNode(0), roxieReplicateOffset(1)
|
|
|
+ : name(_name), prefix(_prefix), alias(_alias), roxieRedundancy(0), channelsPerNode(0), numberOfSlaveLogs(0), roxieReplicateOffset(1)
|
|
|
{
|
|
|
StringBuffer queue;
|
|
|
if (thors.ordinality())
|
|
@@ -4425,6 +4426,7 @@ public:
|
|
|
unsigned slavesPerNode = thor.getPropInt("@slavesPerNode", 1);
|
|
|
unsigned channelsPerSlave = thor.getPropInt("@channelsPerSlave", 1);
|
|
|
unsigned ts = nodes * slavesPerNode * channelsPerSlave;
|
|
|
+ numberOfSlaveLogs = nodes * slavesPerNode;
|
|
|
if (clusterWidth && (ts!=clusterWidth))
|
|
|
throw MakeStringException(WUERR_MismatchClusterSize,"CEnvironmentClusterInfo: mismatched thor sizes in cluster");
|
|
|
clusterWidth = ts;
|
|
@@ -4513,6 +4515,10 @@ public:
|
|
|
{
|
|
|
return clusterWidth;
|
|
|
}
|
|
|
+ unsigned getNumberOfSlaveLogs() const
|
|
|
+ {
|
|
|
+ return numberOfSlaveLogs;
|
|
|
+ }
|
|
|
virtual ClusterType getPlatform() const
|
|
|
{
|
|
|
return platform;
|