[CP] fix bug about PX thread limit

This commit is contained in:
obdev
2023-11-22 09:10:45 +00:00
committed by ob-robot
parent 14cd76447f
commit 36f354d2e0

View File

@ -395,7 +395,7 @@ int ObPxTenantTargetMonitor::apply_target(hash::ObHashMap<ObAddr, int64_t> &work
// read lock to avoid reset map.
SpinRLockGuard rlock_guard(spin_lock_); // Just for avoid multiple SQL applications at the same time
// for pmas
int64_t target = session_target;
int64_t target = session_target != INT64_MAX ? session_target : parallel_servers_target_;
uint64_t version = version_;
bool is_first_query = true;
bool is_target_enough = true;