set pagelsn when redo he3hash_xlog_squeeze_page

This commit is contained in:
wangyao 2023-06-06 06:08:09 +00:00 committed by Gitee
commit 637a27a0db
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -747,6 +747,10 @@ he3hash_xlog_squeeze_page(XLogReaderState *record)
* is to ensure a cleanup lock on primary bucket page.
*/
(void) XLogReadBufferForRedoExtended(record, 0, mode, true, &bucketbuf);
Page writepage;
writepage = (Page) BufferGetPage(bucketbuf);
PageSetLSN(writepage, lsn);
MarkBufferDirty(bucketbuf);
}
if (mode != RBM_NORMAL_VALID && BufferIsValid(bucketbuf))
UnlockReleaseBuffer(bucketbuf);