fix ObIOBenchController core
This commit is contained in:
parent
18fbe3c59e
commit
dd30da929d
@ -501,6 +501,12 @@ int ObIOBenchController::start_io_bench()
|
||||
ret = OB_SUCCESS;
|
||||
}
|
||||
} else {
|
||||
if (-1 != tg_id_) {
|
||||
TG_STOP(tg_id_);
|
||||
TG_WAIT(tg_id_);
|
||||
TG_DESTROY(tg_id_);
|
||||
tg_id_ = -1;
|
||||
}
|
||||
if (OB_FAIL(TG_CREATE(TGDefIDs::IO_BENCHMARK, tg_id_))) {
|
||||
LOG_WARN("create tg failed", K(ret));
|
||||
} else if (OB_FAIL(TG_SET_RUNNABLE_AND_START(tg_id_, *this))) {
|
||||
@ -620,7 +626,6 @@ void ObIOBenchController::run1()
|
||||
|
||||
ret_code_ = ret;
|
||||
finish_ts_ = ObTimeUtility::fast_current_time();
|
||||
TG_DESTROY(tg_id_);
|
||||
}
|
||||
|
||||
int64_t ObIOBenchController::get_start_timestamp()
|
||||
|
Loading…
x
Reference in New Issue
Block a user