[FEAT MERGE] Add LatchIds for locks and monitors
This commit is contained in:
@ -15,8 +15,6 @@
|
||||
|
||||
#include "lib/list/ob_dlist.h"
|
||||
#include "lib/string/ob_string.h"
|
||||
#include "lib/lock/ob_spin_rwlock.h"
|
||||
#include "lib/lock/ob_tc_rwlock.h"
|
||||
#include "lib/stat/ob_latch_define.h"
|
||||
#include "sql/session/ob_basic_session_info.h"
|
||||
#include "sql/plan_cache/ob_plan_cache_value.h"
|
||||
|
||||
@ -152,7 +152,6 @@ ObPlanCacheValue::ObPlanCacheValue()
|
||||
stmt_type_(stmt::T_MAX)
|
||||
{
|
||||
MEMSET(sql_id_, 0, sizeof(sql_id_));
|
||||
//pthread_rwlock_init(&rwlock_, NULL);
|
||||
}
|
||||
|
||||
int ObPlanCacheValue::init(ObPCVSet *pcv_set, const ObILibCacheObject *cache_obj, ObPlanCacheCtx &pc_ctx)
|
||||
|
||||
@ -356,7 +356,6 @@ private:
|
||||
ObPCVSet *pcv_set_;
|
||||
common::ObIAllocator *pc_alloc_;
|
||||
common::ObIAllocator *pc_malloc_;
|
||||
common::SpinRWLock rwlock_;
|
||||
//plan id
|
||||
int64_t last_plan_id_;
|
||||
// a list of plan sets with different param types combination
|
||||
|
||||
@ -39,7 +39,7 @@ ObPsCache::ObPsCache()
|
||||
mem_low_pct_(0),
|
||||
hit_count_(0),
|
||||
access_count_(0),
|
||||
mutex_(),
|
||||
mutex_(common::ObLatchIds::PS_CACHE_EVICT_MUTEX_LOCK),
|
||||
mem_context_(NULL),
|
||||
inner_allocator_(NULL)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user