Skip to content

Commit

Permalink
HPCC-33436 Set offsetBranches to correct value in index write
Browse files Browse the repository at this point in the history
Signed-off-by: Shamser Ahmed <[email protected]>
  • Loading branch information
shamser committed Feb 14, 2025
1 parent 8c73876 commit 1bf6354
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion thorlcr/activities/indexwrite/thindexwrite.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -347,15 +347,17 @@ class IndexWriteActivityMaster : public CMasterActivity

offset_t slaveUncompressedSize;
offset_t slaveOriginalBlobSize;
offset_t offsetBranches;
mb.read(slaveUncompressedSize);
mb.read(slaveOriginalBlobSize);
mb.read(offsetBranches);

compressedFileSize += size;
uncompressedSize += slaveUncompressedSize;
originalBlobSize += slaveOriginalBlobSize;

props.setPropInt64("@uncompressedSize", slaveUncompressedSize);
props.setPropInt64("@offsetBranches", statsCollection.getStatisticSum(StSizeOffsetBranches));
props.setPropInt64("@offsetBranches", offsetBranches);

//Read details for the TLK if it has been generated
if (!singlePartKey && 0 == slaveIdx && buildTlk)
Expand Down
2 changes: 1 addition & 1 deletion thorlcr/activities/indexwrite/thindexwriteslave.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -616,7 +616,7 @@ class IndexWriteSlaveActivity : public ProcessSlaveActivity, public ILookAheadSt
mb.append(partCrc);
mb.append(uncompressedSize);
mb.append(originalBlobSize);

mb.append(inactiveStats.getStatisticValue(StSizeOffsetBranches));
if (!singlePartKey && firstNode() && buildTlk)
{
mb.append(tlkCrc);
Expand Down

0 comments on commit 1bf6354

Please sign in to comment.