Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
野花太放肆
oceanbase
提交
c1a3a90f
O
oceanbase
项目概览
野花太放肆
/
oceanbase
与 Fork 源项目一致
Fork自
oceanbase / oceanbase
通知
1
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
O
oceanbase
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
c1a3a90f
编写于
7月 11, 2021
作者:
O
obdev
提交者:
wangzelin.wzl
7月 11, 2021
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix coverity issues
上级
5b403f4e
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
14 addition
and
14 deletion
+14
-14
deps/oblib/src/lib/container/ob_se_array.h
deps/oblib/src/lib/container/ob_se_array.h
+2
-2
src/storage/ob_partition_group.h
src/storage/ob_partition_group.h
+2
-2
src/storage/ob_partition_service.cpp
src/storage/ob_partition_service.cpp
+3
-3
src/storage/ob_partition_service.h
src/storage/ob_partition_service.h
+3
-3
src/storage/ob_pg_index.cpp
src/storage/ob_pg_index.cpp
+1
-1
src/storage/ob_pg_index.h
src/storage/ob_pg_index.h
+2
-2
unittest/storage/mockcontainer/mock_ob_partition_service.h
unittest/storage/mockcontainer/mock_ob_partition_service.h
+1
-1
未找到文件。
deps/oblib/src/lib/container/ob_se_array.h
浏览文件 @
c1a3a90f
...
...
@@ -38,12 +38,12 @@ public:
{
UNUSED
(
allocator
);
}
virtual
void
*
alloc
(
int64_t
sz
)
virtual
void
*
alloc
(
const
int64_t
sz
)
override
{
UNUSEDx
(
sz
);
return
nullptr
;
}
virtual
void
*
alloc
(
int64_t
sz
,
const
ObMemAttr
&
attr
)
virtual
void
*
alloc
(
const
int64_t
sz
,
const
ObMemAttr
&
attr
)
override
{
UNUSEDx
(
sz
,
attr
);
return
nullptr
;
...
...
src/storage/ob_partition_group.h
浏览文件 @
c1a3a90f
...
...
@@ -135,9 +135,9 @@ public:
const
common
::
ObIArray
<
uint64_t
>&
column_ids
,
const
common
::
ObIArray
<
uint64_t
>&
updated_column_ids
,
const
common
::
ObNewRow
&
old_row
,
const
common
::
ObNewRow
&
new_row
)
override
;
virtual
int
lock_rows
(
const
ObStoreCtx
&
ctx
,
const
ObDMLBaseParam
&
dml_param
,
const
int64_t
abs_lock_timeout
,
common
::
ObNewRowIterator
*
row_iter
,
ObLockFlag
lock_flag
,
int64_t
&
affected_rows
)
;
common
::
ObNewRowIterator
*
row_iter
,
const
ObLockFlag
lock_flag
,
int64_t
&
affected_rows
)
override
;
virtual
int
lock_rows
(
const
ObStoreCtx
&
ctx
,
const
ObDMLBaseParam
&
dml_param
,
const
int64_t
abs_lock_timeout
,
const
common
::
ObNewRow
&
row
,
ObLockFlag
lock_flag
);
const
common
::
ObNewRow
&
row
,
ObLockFlag
lock_flag
)
override
;
virtual
int
get_role
(
common
::
ObRole
&
role
)
const
;
virtual
int
get_role_for_partition_table
(
common
::
ObRole
&
role
)
const
;
...
...
src/storage/ob_partition_service.cpp
浏览文件 @
c1a3a90f
...
...
@@ -9365,12 +9365,12 @@ int ObPartitionService::xa_rollback_all_changes(ObTransDesc& trans_desc, const O
return ret;
}
int ObPartitionService::get_pg_key(const ObPartitionKey& pkey, ObPGKey& pg_key)
int ObPartitionService::get_pg_key(const ObPartitionKey& pkey, ObPGKey& pg_key)
const
{
return get_pg_key_(pkey, pg_key);
}
int ObPartitionService::get_pg_key_(const ObPartitionKey& pkey, ObPGKey& pg_key)
int ObPartitionService::get_pg_key_(const ObPartitionKey& pkey, ObPGKey& pg_key)
const
{
int ret = OB_SUCCESS;
if (pkey.is_trans_table()) {
...
...
@@ -9401,7 +9401,7 @@ int ObPartitionService::get_pg_key_(const ObPartitionKey& pkey, ObPGKey& pg_key)
return ret;
}
int ObPartitionService::get_pg_key_from_index_schema_(const ObPartitionKey& pkey, ObPGKey& pg_key)
int ObPartitionService::get_pg_key_from_index_schema_(const ObPartitionKey& pkey, ObPGKey& pg_key)
const
{
int ret = OB_SUCCESS;
...
...
src/storage/ob_partition_service.h
浏览文件 @
c1a3a90f
...
...
@@ -758,7 +758,7 @@ public:
int
process_migrate_retry_task
(
const
ObMigrateRetryTask
&
task
);
bool
reach_tenant_partition_limit
(
const
int64_t
batch_cnt
,
const
uint64_t
tenant_id
,
const
bool
is_pg_arg
);
int
retry_rebuild_loop
();
VIRTUAL_FOR_UNITTEST
int
get_pg_key
(
const
ObPartitionKey
&
pkey
,
ObPGKey
&
pg_key
);
VIRTUAL_FOR_UNITTEST
int
get_pg_key
(
const
ObPartitionKey
&
pkey
,
ObPGKey
&
pg_key
)
const
override
;
static
int
mtl_init
(
ObTenantStorageInfo
*&
tenant_store_info
)
{
int
ret
=
common
::
OB_SUCCESS
;
...
...
@@ -986,8 +986,8 @@ private:
int
handle_rebuild_result_
(
const
common
::
ObPartitionKey
pkey
,
const
common
::
ObReplicaType
replica_type
,
const
int
ret_val
);
bool
reach_tenant_partition_limit_
(
const
int64_t
batch_cnt
,
const
uint64_t
tenant_id
,
const
bool
is_pg_arg
);
int
get_pg_key_
(
const
ObPartitionKey
&
pkey
,
ObPGKey
&
pg_key
);
int
get_pg_key_from_index_schema_
(
const
ObPartitionKey
&
pkey
,
ObPGKey
&
pg_key
);
int
get_pg_key_
(
const
ObPartitionKey
&
pkey
,
ObPGKey
&
pg_key
)
const
;
int
get_pg_key_from_index_schema_
(
const
ObPartitionKey
&
pkey
,
ObPGKey
&
pg_key
)
const
;
int
submit_add_partition_to_pg_clog_
(
const
common
::
ObIArray
<
obrpc
::
ObCreatePartitionArg
>&
batch_arg
,
const
int64_t
timeout
,
common
::
ObIArray
<
uint64_t
>&
log_id_arr
);
int
write_partition_schema_version_change_clog_
(
const
common
::
ObPGKey
&
pg_key
,
const
common
::
ObPartitionKey
&
pkey
,
...
...
src/storage/ob_pg_index.cpp
浏览文件 @
c1a3a90f
...
...
@@ -133,7 +133,7 @@ int ObPartitionGroupIndex::remove_partition(const ObPartitionKey& pkey)
return
ret
;
}
int
ObPartitionGroupIndex
::
get_pg_key
(
const
common
::
ObPartitionKey
&
pkey
,
common
::
ObPGKey
&
pg_key
)
int
ObPartitionGroupIndex
::
get_pg_key
(
const
common
::
ObPartitionKey
&
pkey
,
common
::
ObPGKey
&
pg_key
)
const
{
int
ret
=
OB_SUCCESS
;
ObPGKeyWrap
*
pg_key_wrap
=
NULL
;
...
...
src/storage/ob_pg_index.h
浏览文件 @
c1a3a90f
...
...
@@ -96,14 +96,14 @@ public:
int
add_partition
(
const
common
::
ObPartitionKey
&
pkey
,
const
common
::
ObPGKey
&
pg_key
);
int
remove_partition
(
const
common
::
ObPartitionKey
&
pkey
);
int
get_pg_key
(
const
common
::
ObPartitionKey
&
pkey
,
common
::
ObPGKey
&
pg_key
);
int
get_pg_key
(
const
common
::
ObPartitionKey
&
pkey
,
common
::
ObPGKey
&
pg_key
)
const
;
private:
DISALLOW_COPY_AND_ASSIGN
(
ObPartitionGroupIndex
);
private:
bool
is_inited_
;
ObPGIndexMap
pg_index_map_
;
mutable
ObPGIndexMap
pg_index_map_
;
mutable
lib
::
ObMutex
change_mutex_
;
};
...
...
unittest/storage/mockcontainer/mock_ob_partition_service.h
浏览文件 @
c1a3a90f
...
...
@@ -176,7 +176,7 @@ public:
MOCK_METHOD2
(
get_partitions_by_file_key
,
int
(
const
ObTenantFileKey
&
file_key
,
ObIPartitionArrayGuard
&
partitions
));
MOCK_CONST_METHOD1
(
get_partition_count
,
int
(
int64_t
&
partition_count
));
virtual
int
get_pg_key
(
const
ObPartitionKey
&
pkey
,
ObPGKey
&
pg_key
)
virtual
int
get_pg_key
(
const
ObPartitionKey
&
pkey
,
ObPGKey
&
pg_key
)
const
override
{
pg_key
=
pkey
;
return
common
::
OB_SUCCESS
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录