Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
oceanbase
miniob
提交
d30c592f
M
miniob
项目概览
oceanbase
/
miniob
1 年多 前同步成功
通知
74
Star
1521
Fork
537
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
分析
仓库
DevOps
项目成员
Pages
M
miniob
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Pages
分析
分析
仓库分析
DevOps
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
提交
提交
d30c592f
编写于
4月 02, 2022
作者:
羽飞
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
opt logs
上级
f9ff026a
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
5 addition
and
4 deletion
+5
-4
src/observer/storage/common/bplus_tree.cpp
src/observer/storage/common/bplus_tree.cpp
+1
-1
src/observer/storage/common/bplus_tree.h
src/observer/storage/common/bplus_tree.h
+4
-3
未找到文件。
src/observer/storage/common/bplus_tree.cpp
浏览文件 @
d30c592f
...
@@ -314,7 +314,7 @@ std::string to_string(const LeafIndexNodeHandler &handler, const KeyPrinter &pri
...
@@ -314,7 +314,7 @@ std::string to_string(const LeafIndexNodeHandler &handler, const KeyPrinter &pri
ss
<<
to_string
((
const
IndexNodeHandler
&
)
handler
)
ss
<<
to_string
((
const
IndexNodeHandler
&
)
handler
)
<<
",prev page:"
<<
handler
.
prev_page
()
<<
",prev page:"
<<
handler
.
prev_page
()
<<
",next page:"
<<
handler
.
next_page
();
<<
",next page:"
<<
handler
.
next_page
();
ss
<<
",values=["
<<
printer
(
handler
.
__key_at
(
0
));
ss
<<
",values=["
<<
printer
(
handler
.
__key_at
(
0
))
;
for
(
int
i
=
1
;
i
<
handler
.
size
();
i
++
)
{
for
(
int
i
=
1
;
i
<
handler
.
size
();
i
++
)
{
ss
<<
","
<<
printer
(
handler
.
__key_at
(
i
));
ss
<<
","
<<
printer
(
handler
.
__key_at
(
i
));
}
}
...
...
src/observer/storage/common/bplus_tree.h
浏览文件 @
d30c592f
...
@@ -143,11 +143,12 @@ public:
...
@@ -143,11 +143,12 @@ public:
}
}
std
::
string
operator
()
(
const
char
*
v
)
const
{
std
::
string
operator
()
(
const
char
*
v
)
const
{
std
::
string
result
=
attr_printer_
(
v
)
;
std
::
string
stream
ss
;
result
.
append
(
","
)
;
ss
<<
"{key:"
<<
attr_printer_
(
v
)
<<
","
;
const
RID
*
rid
=
(
const
RID
*
)(
v
+
attr_printer_
.
attr_length
());
const
RID
*
rid
=
(
const
RID
*
)(
v
+
attr_printer_
.
attr_length
());
return
result
.
append
(
rid
->
to_string
());
ss
<<
"rid:{"
<<
rid
->
to_string
()
<<
"}}"
;
return
ss
.
str
();
}
}
private:
private:
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录