Explorar o código

HPCC-22804 Roxie not handling remote exceptions correctly

Subchannels are supposed to be zero-based, but were being initialized
incorrectly.

Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>
Richard Chapman %!s(int64=5) %!d(string=hai) anos
pai
achega
a55c4960fa
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      roxie/udplib/udptopo.cpp

+ 1 - 1
roxie/udplib/udptopo.cpp

@@ -142,7 +142,7 @@ CTopologyServer::CTopologyServer(const char *topologyInfo)
                 slaves[channel].append(ep);
                 if (ep.equals(mySlaveEP))
                 {
-                    mySubChannels[channel] = slaves[channel].ordinality();
+                    mySubChannels[channel] = slaves[channel].ordinality()-1;
                     channels.push_back(channel);
                 }
                 slaves[0].append(ep);