adjust pitr barrier time
Offering: openGaussDev More detail: adjust pitr barrier time Match-id-4bd3feb79953fdfe59ac34788c57d59b5a3e356b
This commit is contained in:
parent
8264115840
commit
c423cfdb1b
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue