forked from huawei/openGauss-server
fix issue 恢复pg_dw_single文件时跳过了对索引为0位置的数据页面的处理
This commit is contained in:
parent
1e38a0e8ac
commit
af29fcb32c
|
|
@ -1803,9 +1803,19 @@ bool dw_single_file_recycle(bool trunc_file)
|
|||
|
||||
bool dw_verify_item(const dw_single_flush_item* item, uint16 dwn)
|
||||
{
|
||||
if (item->data_page_idx == 0 || item->dwn != dwn) {
|
||||
if (item->dwn != dwn) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (item->buf_tag.forkNum == InvalidForkNumber || item->buf_tag.blockNum == InvalidBlockNumber ||
|
||||
item->buf_tag.rnode.relNode == InvalidOid) {
|
||||
ereport(DEBUG1,
|
||||
(errmsg("dw recovery, find invalid item [page_idx %hu dwn %hu] skip this item,"
|
||||
"buf_tag[rel %u/%u/%u blk %u fork %d]", item->data_page_idx, item->dwn,
|
||||
item->buf_tag.rnode.spcNode, item->buf_tag.rnode.dbNode, item->buf_tag.rnode.relNode,
|
||||
item->buf_tag.blockNum, item->buf_tag.forkNum)));
|
||||
return false;
|
||||
}
|
||||
pg_crc32c crc;
|
||||
/* Contents are protected with a CRC */
|
||||
INIT_CRC32C(crc);
|
||||
|
|
|
|||
|
|
@ -1795,7 +1795,7 @@ bool cmdStringCheck(const char *cmd_string)
|
|||
* */
|
||||
static bool cmdStringLengthCheck(const char* cmd_string)
|
||||
{
|
||||
const size_t cmd_length_limit = 1024;
|
||||
const size_t cmd_length_limit = 102400;
|
||||
const size_t slotname_limit = 64;
|
||||
char comd[cmd_length_limit] = {'\0'};
|
||||
char* sub_cmd = NULL;
|
||||
|
|
|
|||
Loading…
Reference in New Issue