[CP] fix bug about PX thread limit
This commit is contained in:
@ -395,7 +395,7 @@ int ObPxTenantTargetMonitor::apply_target(hash::ObHashMap<ObAddr, int64_t> &work
|
|||||||
// read lock to avoid reset map.
|
// read lock to avoid reset map.
|
||||||
SpinRLockGuard rlock_guard(spin_lock_); // Just for avoid multiple SQL applications at the same time
|
SpinRLockGuard rlock_guard(spin_lock_); // Just for avoid multiple SQL applications at the same time
|
||||||
// for pmas
|
// for pmas
|
||||||
int64_t target = session_target;
|
int64_t target = session_target != INT64_MAX ? session_target : parallel_servers_target_;
|
||||||
uint64_t version = version_;
|
uint64_t version = version_;
|
||||||
bool is_first_query = true;
|
bool is_first_query = true;
|
||||||
bool is_target_enough = true;
|
bool is_target_enough = true;
|
||||||
|
|||||||
Reference in New Issue
Block a user