소스 검색

HPCC-13469 Roxie sets incorrect file part CRC when outputting XML file.

If the CRC has not been calculated, it should leave it unset rather than
setting 0.

Signed-off-by: Richard Chapman <rchapman@hpccsystems.com>
Richard Chapman 10 년 전
부모
커밋
bd9b346149
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      roxie/ccd/ccdserver.cpp

+ 1 - 1
roxie/ccd/ccdserver.cpp

@@ -11056,7 +11056,7 @@ public:
             fileProps.setPropInt64("@size", uncompressedBytesWritten);
             partProps.setPropInt64("@size", uncompressedBytesWritten);
         }
-        else if (tallycrc)
+        else if (tallycrc && crc.get())
             partProps.setPropInt64("@fileCrc", crc.get());
 
         if (encrypted)