BUGFIX: break infinite loop of write throttle

This commit is contained in:
obdev
2023-02-24 13:44:18 +00:00
committed by ob-robot
parent 431bb53903
commit bfc82bd433
3 changed files with 41 additions and 14 deletions

View File

@ -103,7 +103,8 @@ ObStorageTableGuard::~ObStorageTableGuard()
}
}
if (REACH_TIME_INTERVAL(100 * 1000L)) {
if (REACH_TIME_INTERVAL(100 * 1000L) &&
sleep_time > 0) {
int64_t cost_time = ObTimeUtility::current_time() - init_ts_;
LOG_INFO("throttle situation", K(sleep_time), K(time), K(seq), K(for_replay_), K(cost_time));
}