adjust pitr barrier time

Offering: openGaussDev

More detail: adjust pitr barrier time

Match-id-4bd3feb79953fdfe59ac34788c57d59b5a3e356b
This commit is contained in:
openGaussDev 2022-03-03 17:13:47 +08:00 committed by yanghao
parent 8264115840
commit c423cfdb1b
1 changed files with 3 additions and 2 deletions

View File

@ -57,13 +57,14 @@ void GetCsnBarrierName(char* barrierRet, bool isSwitchoverBarrier)
struct timeval tv;
int rc;
CommitSeqNo csn;
gettimeofday(&tv, NULL);
if (GTM_MODE)
csn = GetCSNGTM();
else
csn = CommitCSNGTM(false);
gettimeofday(&tv, NULL);
if (isSwitchoverBarrier) {
rc = snprintf_s(barrierRet, BARRIER_NAME_LEN, BARRIER_NAME_LEN - 1, CSN_SWITCHOVER_BARRIER_PATTREN_STR, csn);
} else {