From cf9030fab1be37c67958ac7db0a55956e16c4989 Mon Sep 17 00:00:00 2001 From: slzhou Date: Wed, 3 Aug 2022 17:00:43 +0800 Subject: [PATCH] fix: prevent result row page swapping so that the result is preserved --- source/libs/executor/inc/executil.h | 1 + 1 file changed, 1 insertion(+) diff --git a/source/libs/executor/inc/executil.h b/source/libs/executor/inc/executil.h index c3dad1ed7c..ee96bc693d 100644 --- a/source/libs/executor/inc/executil.h +++ b/source/libs/executor/inc/executil.h @@ -90,6 +90,7 @@ struct SResultRowEntryInfo* getResultEntryInfo(const SResultRow* pRow, int32_t i static FORCE_INLINE SResultRow* getResultRowByPos(SDiskbasedBuf* pBuf, SResultRowPosition* pos) { SFilePage* bufPage = (SFilePage*)getBufPage(pBuf, pos->pageId); + setBufPageDirty(bufPage, true); SResultRow* pRow = (SResultRow*)((char*)bufPage + pos->offset); return pRow; } -- GitLab