Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
镜像
OpenAtomFoundation
pika
提交
9324b3eb
pika
项目概览
镜像
/
OpenAtomFoundation
/
pika
10 个月 前同步成功
通知
0
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
pika
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
9324b3eb
编写于
5月 06, 2020
作者:
K
kernelai
提交者:
Zhao Minghuan
5月 21, 2020
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
debug: SlotsMgrtTagSlotAsyncCmd always using default table (#900)
* debug: SlotsMgrtTagSlotAsync always using default table
上级
7d3b2b1c
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
10 addition
and
3 deletion
+10
-3
src/pika_slot.cc
src/pika_slot.cc
+10
-3
未找到文件。
src/pika_slot.cc
浏览文件 @
9324b3eb
...
...
@@ -145,8 +145,15 @@ void SlotsMgrtTagSlotAsyncCmd::DoInitial() {
std
::
string
str_max_bytes_
=
*
it
++
;
std
::
string
str_slot_num
=
*
it
++
;
std
::
shared_ptr
<
Table
>
table
=
g_pika_server
->
GetTable
(
table_name_
);
if
(
table
==
NULL
)
{
res_
.
SetRes
(
CmdRes
::
kNotFound
,
kCmdNameSlotsMgrtTagSlotAsync
);
return
;
}
if
(
!
slash
::
string2l
(
str_slot_num
.
data
(),
str_slot_num
.
size
(),
&
slot_num_
)
||
slot_num_
<
0
||
slot_num_
>=
g_pika_conf
->
default_slot_n
um
())
{
||
slot_num_
<
0
||
slot_num_
>=
table
->
PartitionN
um
())
{
res_
.
SetRes
(
CmdRes
::
kInvalidInt
,
kCmdNameSlotsMgrtTagSlotAsync
);
return
;
}
...
...
@@ -166,9 +173,9 @@ void SlotsMgrtTagSlotAsyncCmd::Do(std::shared_ptr<Partition> partition) {
// proxy retry cached request in new node
bool
is_exist
=
true
;
std
::
shared_ptr
<
SyncMasterPartition
>
master_partition
=
g_pika_rm
->
GetSyncMasterPartitionByName
(
PartitionInfo
(
g_pika_conf
->
default_table
()
,
slot_num_
));
g_pika_rm
->
GetSyncMasterPartitionByName
(
PartitionInfo
(
table_name_
,
slot_num_
));
if
(
!
master_partition
)
{
LOG
(
WARNING
)
<<
"Sync Master Partition: "
<<
g_pika_conf
->
default_table
()
<<
":"
<<
slot_num_
LOG
(
WARNING
)
<<
"Sync Master Partition: "
<<
table_name_
<<
":"
<<
slot_num_
<<
", NotFound"
;
res_
.
SetRes
(
CmdRes
::
kNotFound
,
kCmdNameSlotsMgrtTagSlotAsync
);
return
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录