diff --git a/src/backend/storage/smgr/md.c b/src/backend/storage/smgr/md.c index d6234f3..862ff12 100644 --- a/src/backend/storage/smgr/md.c +++ b/src/backend/storage/smgr/md.c @@ -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),