mirror of
https://gitee.com/he3db/he3pg.git
synced 2024-12-02 04:07:34 +08:00
init empty block when could not read page
Signed-off-by: shipixian <shipixian_yewu@cmss.chinamobile.com>
This commit is contained in:
parent
3d471a8982
commit
8e128c64e0
@ -810,6 +810,8 @@ int he3db_mdread_pagexlog(SMgrRelation reln, ForkNumber forknum, BlockNumber blo
|
||||
(errcode_for_file_access(),
|
||||
errmsg("could not read block %u in file \"%s\": %m",
|
||||
blocknum, FilePathName(v->mdfd_vfd))));
|
||||
if (he3mirror && nbytes == 0)
|
||||
MemSet(*buffer, 0, BLCKSZ);
|
||||
|
||||
ereport(PANIC,
|
||||
(errcode(ERRCODE_DATA_CORRUPTED),
|
||||
|
Loading…
Reference in New Issue
Block a user