[CP] fix: change gts wait time to 1s to avoid gts repeatedly timeout

This commit is contained in:
obdev 2023-10-18 03:43:32 +00:00 committed by ob-robot
parent 1442a4beee
commit 663ac63e93

View File

@ -1739,7 +1739,7 @@ int ObTransService::acquire_global_snapshot__(const int64_t expire_ts,
const MonotonicTs now0 = get_req_receive_mts_();
const MonotonicTs now = now0 - MonotonicTs(gts_ahead);
int retry_times = 0;
const int MAX_RETRY_TIMES = 100;
const int MAX_RETRY_TIMES = 2000; // 2000 * 500us = 1s
do {
int64_t n = ObClockGenerator::getClock();
MonotonicTs rts(0);