Fix bug that sleep wrongly when get dtl data

This commit is contained in:
obdev
2021-07-16 14:30:14 +08:00
committed by wangzelin.wzl
parent 46cd5c3ce0
commit 4deb96eab4
10 changed files with 74 additions and 19 deletions

View File

@ -339,8 +339,9 @@ int ObDtlChannelLoop::process_channel(int64_t& nth_channel)
remove_data_list(ch);
}
if (n_times > 100) {
// it's maybe unexpected !
LOG_WARN("loop times", K(n_times));
sleep(10);
usleep(1);
}
++loop_times_;
if (ignore_interrupt_) {