Skip to content

Commit

Permalink
HPCC-32929 Fix global merge regression (crash)
Browse files Browse the repository at this point in the history
HPCC-32111 introduced a bug that caused global merge to
produce invalid output.

Signed-off-by: Jake Smith <[email protected]>
  • Loading branch information
jakesmith committed Nov 1, 2024
1 parent bf157ea commit 9acb750
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion thorlcr/msort/tsorta.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,7 @@ void CThorKeyArray::calcPositions(IFile *file, CThorKeyArray &sample, unsigned r
if (pos==(offset_t)-1)
pos = 0;
// should do bin-chop for fixed length but initially do sequential search
Owned<IRowStream> s = createRowStreamEx(file, rowif, pos, 0, (offset_t)-1, rwFlags);
Owned<IRowStream> s = createRowStreamEx(file, rowif, pos, (offset_t)-1, (unsigned __int64)-1, rwFlags);
for (;;)
{
OwnedConstThorRow rowcmp = s->nextRow();
Expand Down

0 comments on commit 9acb750

Please sign in to comment.