fix: prevent result row page swapping so that the result is preserved

This commit is contained in:
slzhou 2022-08-03 17:00:43 +08:00
parent 70e806b0d2
commit cf9030fab1
1 changed files with 1 additions and 0 deletions

View File

@ -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;
}