[FEAT MERGE] Add LatchIds for locks and monitors

This commit is contained in:
raywill
2022-12-01 03:09:50 +00:00
committed by ob-robot
parent 3a86ba6ccc
commit 8fb62754a1
192 changed files with 967 additions and 912 deletions

View File

@ -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"

View File

@ -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)

View File

@ -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

View File

@ -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)
{