Explorar el Código

Merge pull request #13234 from jakesmith/hpcc-23235-kj-uniitialized-part-crc

HPCC-23235 KJ - initialize crc if none present

Reviewed-by: Gavin Halliday <ghalliday@hpccsystems.com>
Gavin Halliday hace 5 años
padre
commit
e41c8d8c8d
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      thorlcr/activities/keyedjoin/thkeyedjoinslave.cpp

+ 2 - 1
thorlcr/activities/keyedjoin/thkeyedjoinslave.cpp

@@ -1484,7 +1484,8 @@ class CKeyedJoinSlave : public CSlaveActivity, implements IJoinProcessor, implem
             {
                 IPartDescriptor &part = activity.allIndexParts.item(partNo);
                 unsigned crc;
-                part.getCrc(crc);
+                if (!part.getCrc(crc))
+                    crc = 0;
                 RemoteFilename rfn;
                 part.getFilename(copy, rfn);
                 StringBuffer fname;