diff --git a/src/backend/access/transam/xlogutils.c b/src/backend/access/transam/xlogutils.c index 08fda30..a1d2834 100644 --- a/src/backend/access/transam/xlogutils.c +++ b/src/backend/access/transam/xlogutils.c @@ -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); diff --git a/src/backend/catalog/storage.c b/src/backend/catalog/storage.c index 7b4eaf2..3ba8391 100644 --- a/src/backend/catalog/storage.c +++ b/src/backend/catalog/storage.c @@ -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); /* diff --git a/src/backend/commands/dbcommands.c b/src/backend/commands/dbcommands.c index 356f6a9..23ef151 100644 --- a/src/backend/commands/dbcommands.c +++ b/src/backend/commands/dbcommands.c @@ -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); } diff --git a/src/backend/utils/misc/guc.c b/src/backend/utils/misc/guc.c index 9b19a6b..3c15903 100644 --- a/src/backend/utils/misc/guc.c +++ b/src/backend/utils/misc/guc.c @@ -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 }, diff --git a/src/include/utils/guc.h b/src/include/utils/guc.h index 414fe4f..6d983dd 100644 --- a/src/include/utils/guc.h +++ b/src/include/utils/guc.h @@ -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;