update he3share para

Signed-off-by: shipixian <shipixian_yewu@cmss.chinamobile.com>
This commit is contained in:
shipixian 2023-06-05 17:15:55 +08:00
parent 80326591d3
commit 2806e90663
5 changed files with 8 additions and 8 deletions

View File

@ -632,7 +632,7 @@ XLogReadBufferExtended(RelFileNode rnode, ForkNumber forknum,
else
{
/* hm, page doesn't exist in file */
if(!he3mirror && aurora){
if(!he3mirror && he3share){
if (mode == RBM_NORMAL && EnableHotStandby != false && *isPromoteIsTriggered == false)
{
log_invalid_page(rnode, forknum, blkno, false);

View File

@ -1008,7 +1008,7 @@ smgr_redo(XLogReaderState *record)
}
/* Do the real work to truncate relation forks */
if (nforks > 0 && (!EnableHotStandby || *isPromoteIsTriggered || !aurora))
if (nforks > 0 && (!EnableHotStandby || *isPromoteIsTriggered || !he3share))
smgrtruncatelsn(reln, forks, nforks, blocks, record->ReadRecPtr);
/*

View File

@ -2258,7 +2258,7 @@ dbase_redo(XLogReaderState *record)
* We don't need to copy subdirectories
*/
/* He3DB: propeller instance and He3DB slave instance not create db file*/
if (!EnableHotStandby || *isPromoteIsTriggered || he3mirror)
if (!EnableHotStandby || *isPromoteIsTriggered || he3mirror || !he3share)
{
copydir(src_path, dst_path, false);
}

View File

@ -607,7 +607,7 @@ char *pgstat_temp_directory;
char *application_name;
bool push_standby = false;
bool aurora = true;
bool he3share = true;
bool mpush = false;
bool he3_point_in_time_recovery;
bool he3mirror = false;
@ -2140,10 +2140,10 @@ static struct config_bool ConfigureNamesBool[] =
},
{
{"aurora", PGC_SIGHUP, WAL_ARCHIVE_RECOVERY,
gettext_noop("Sets storage is shared if aurora is configured true."),
{"he3share", PGC_SIGHUP, WAL_ARCHIVE_RECOVERY,
gettext_noop("Sets storage is shared if he3share is configured true."),
},
&aurora,
&he3share,
true,
NULL, NULL, NULL
},

View File

@ -277,7 +277,7 @@ extern PGDLLIMPORT bool push_standby;
extern PGDLLIMPORT bool he3_point_in_time_recovery;
extern PGDLLIMPORT bool he3mirror;
extern PGDLLIMPORT bool pgmirror;
extern PGDLLIMPORT bool aurora;
extern PGDLLIMPORT bool he3share;
extern PGDLLIMPORT bool mpush;