浏览代码

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)