patch tair code removing from 22x to 31CE
This commit is contained in:
@ -82,7 +82,7 @@ int ObTenantMutilAllocatorMgr::get_tenant_mutil_allocator(
|
||||
bool is_need_create = false;
|
||||
do {
|
||||
// rdlock
|
||||
obsys::CRLockGuard guard(locks_[slot]);
|
||||
obsys::ObRLockGuard guard(locks_[slot]);
|
||||
TMA** cur = &tma_array_[slot];
|
||||
while ((NULL != cur) && (NULL != *cur) && (*cur)->get_tenant_id() < tenant_id) {
|
||||
cur = &((*cur)->get_next());
|
||||
@ -177,7 +177,7 @@ int ObTenantMutilAllocatorMgr::create_tenant_mutil_allocator_(const uint64_t ten
|
||||
}
|
||||
do {
|
||||
// Need lock when modify slog list
|
||||
obsys::CWLockGuard guard(locks_[slot]);
|
||||
obsys::ObWLockGuard guard(locks_[slot]);
|
||||
if (OB_SUCC(ret)) {
|
||||
bool is_need_create = false;
|
||||
TMA** cur = &tma_array_[slot];
|
||||
|
||||
@ -68,7 +68,7 @@ private:
|
||||
|
||||
private:
|
||||
bool is_inited_;
|
||||
obsys::CRWLock locks_[PRESERVED_TENANT_COUNT];
|
||||
obsys::ObRWLock locks_[PRESERVED_TENANT_COUNT];
|
||||
ObTenantMutilAllocator* tma_array_[PRESERVED_TENANT_COUNT];
|
||||
ObBlockAllocMgr clog_body_blk_alloc_;
|
||||
ObVSliceAlloc clog_entry_alloc_;
|
||||
|
||||
Reference in New Issue
Block a user