[CP] Avoid insert user recover job repeatedly when switch RS

This commit is contained in:
hamstersox
2023-11-06 06:09:48 +00:00
committed by ob-robot
parent 5d11cc123e
commit 788aefd3f0
3 changed files with 79 additions and 29 deletions

View File

@ -35,7 +35,9 @@ public:
// please think carefully about circular dependencies before adding inner table into the white list
static bool in_inner_table_lock_white_list(const uint64_t inner_table_id)
{
return share::OB_ALL_BALANCE_JOB_TID == inner_table_id;
bool b_ret = share::OB_ALL_BALANCE_JOB_TID == inner_table_id
|| share::OB_ALL_RECOVER_TABLE_JOB_TID == inner_table_id;
return b_ret;
}
/*
* lock inner table in trans with internal_sql_execute_timeout