Fix performance reduction for backgroup thread
This commit is contained in:
@ -2131,7 +2131,7 @@ void ObPrimaryLSService::do_work()
|
||||
ret = OB_NOT_INIT;
|
||||
LOG_WARN("not init", K(ret));
|
||||
} else {
|
||||
int64_t idle_time_us = 100 * 1000L;
|
||||
int64_t idle_time_us = 1000 * 1000L;
|
||||
int tmp_ret = OB_SUCCESS;
|
||||
while (!has_set_stop()) {
|
||||
{
|
||||
|
||||
@ -1108,7 +1108,7 @@ ObString ObTxReadSnapshot::get_source_name() const
|
||||
}
|
||||
|
||||
ObTxExecResult::ObTxExecResult()
|
||||
: allocator_("TxExecResult", MTL_ID()),
|
||||
: allocator_("TxExecResult", 0 == MTL_ID() ? OB_SERVER_TENANT_ID : MTL_ID()),
|
||||
incomplete_(false),
|
||||
touched_ls_list_(OB_MALLOC_NORMAL_BLOCK_SIZE, allocator_),
|
||||
parts_(OB_MALLOC_NORMAL_BLOCK_SIZE, allocator_),
|
||||
|
||||
Reference in New Issue
Block a user