Browse Source

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 5 years ago
parent
commit
e41c8d8c8d
1 changed files with 2 additions and 1 deletions
  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;