mirror of
https://gitee.com/he3db/he3pg.git
synced 2024-11-29 18:58:35 +08:00
update he3share para
Signed-off-by: shipixian <shipixian_yewu@cmss.chinamobile.com>
This commit is contained in:
parent
80326591d3
commit
2806e90663
@ -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);
|
||||
|
@ -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);
|
||||
|
||||
/*
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -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
|
||||
},
|
||||
|
@ -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;
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user