From 9acb7509eba1e4c1be276cf4ad3a5e4a96fb4f88 Mon Sep 17 00:00:00 2001 From: Jake Smith Date: Fri, 1 Nov 2024 14:49:22 +0000 Subject: [PATCH] HPCC-32929 Fix global merge regression (crash) HPCC-32111 introduced a bug that caused global merge to produce invalid output. Signed-off-by: Jake Smith --- thorlcr/msort/tsorta.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/thorlcr/msort/tsorta.cpp b/thorlcr/msort/tsorta.cpp index 866ff37ae25..a8ccdf11e77 100644 --- a/thorlcr/msort/tsorta.cpp +++ b/thorlcr/msort/tsorta.cpp @@ -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 s = createRowStreamEx(file, rowif, pos, 0, (offset_t)-1, rwFlags); + Owned s = createRowStreamEx(file, rowif, pos, (offset_t)-1, (unsigned __int64)-1, rwFlags); for (;;) { OwnedConstThorRow rowcmp = s->nextRow();