!4930 修复 hash index 日志回放在 hash_xlog_split_allocate_page 中 core 的问题

Merge pull request !4930 from sungwu/hash_index_split_core
This commit is contained in:
opengauss_bot
2024-03-25 08:48:19 +00:00
committed by Gitee

View File

@ -244,10 +244,8 @@ static void hash_xlog_split_allocate_page(XLogReaderState *record)
/* replay the record for new bucket */ /* replay the record for new bucket */
action = SSCheckInitPageXLog(record, 1, &newbuf); action = SSCheckInitPageXLog(record, 1, &newbuf);
if (action == BLK_NEEDS_REDO) { if (action == BLK_NEEDS_REDO) {
XLogInitBufferForRedo(record, 1, &newbuf); XLogReadBufferForRedoExtended(record, 1, RBM_ZERO_AND_CLEANUP_LOCK, true, &newbuf);
HashRedoSplitAllocatePageOperatorNbukPage(&newbuf, XLogRecGetData(record)); HashRedoSplitAllocatePageOperatorNbukPage(&newbuf, XLogRecGetData(record));
if (!IsBufferCleanupOK(newbuf.buf))
elog(PANIC, "hash_xlog_split_allocate_page: failed to acquire cleanup lock");
MarkBufferDirty(newbuf.buf); MarkBufferDirty(newbuf.buf);
} }