Fix performance reduction for backgroup thread

This commit is contained in:
obdev
2023-05-22 06:47:06 +00:00
committed by ob-robot
parent 2bb8488595
commit 10f5920320
2 changed files with 2 additions and 2 deletions

View File

@ -2131,7 +2131,7 @@ void ObPrimaryLSService::do_work()
ret = OB_NOT_INIT; ret = OB_NOT_INIT;
LOG_WARN("not init", K(ret)); LOG_WARN("not init", K(ret));
} else { } else {
int64_t idle_time_us = 100 * 1000L; int64_t idle_time_us = 1000 * 1000L;
int tmp_ret = OB_SUCCESS; int tmp_ret = OB_SUCCESS;
while (!has_set_stop()) { while (!has_set_stop()) {
{ {

View File

@ -1108,7 +1108,7 @@ ObString ObTxReadSnapshot::get_source_name() const
} }
ObTxExecResult::ObTxExecResult() ObTxExecResult::ObTxExecResult()
: allocator_("TxExecResult", MTL_ID()), : allocator_("TxExecResult", 0 == MTL_ID() ? OB_SERVER_TENANT_ID : MTL_ID()),
incomplete_(false), incomplete_(false),
touched_ls_list_(OB_MALLOC_NORMAL_BLOCK_SIZE, allocator_), touched_ls_list_(OB_MALLOC_NORMAL_BLOCK_SIZE, allocator_),
parts_(OB_MALLOC_NORMAL_BLOCK_SIZE, allocator_), parts_(OB_MALLOC_NORMAL_BLOCK_SIZE, allocator_),