Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
oceanbase
miniob
提交
d5c676a5
M
miniob
项目概览
oceanbase
/
miniob
大约 1 年 前同步成功
通知
74
Star
1521
Fork
537
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
分析
仓库
DevOps
项目成员
Pages
M
miniob
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Pages
分析
分析
仓库分析
DevOps
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
提交
体验新版 GitCode,发现更多精彩内容 >>
未验证
提交
d5c676a5
编写于
9月 23, 2022
作者:
夏
夏克
提交者:
GitHub
9月 23, 2022
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
调整文档格式&编译警告 (#85)
* fix -Wunused-function * 调整文档格式
上级
1a0b063e
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
5 addition
and
7 deletion
+5
-7
docs/how_to_dev_miniob_by_vscode.md
docs/how_to_dev_miniob_by_vscode.md
+4
-5
src/observer/net/server.cpp
src/observer/net/server.cpp
+0
-1
src/observer/sql/stmt/select_stmt.cpp
src/observer/sql/stmt/select_stmt.cpp
+1
-1
未找到文件。
docs/how_to_dev_miniob_by_vscode.md
浏览文件 @
d5c676a5
...
@@ -24,11 +24,10 @@ UBUNTU_CODENAME=focal
...
@@ -24,11 +24,10 @@ UBUNTU_CODENAME=focal
2.
cmake
2.
cmake
3.
make
3.
make
4.
gcc/g++
4.
gcc/g++
5.
libevent
3.
libevent
6.
googletest
5.
googletest
7.
jsoncpp
6.
jsoncpp
8.
git
7.
git
## 获取代码
## 获取代码
```
bash
```
bash
...
...
src/observer/net/server.cpp
浏览文件 @
d5c676a5
...
@@ -189,7 +189,6 @@ int Server::send(ConnectionContext *client, const char *buf, int data_len)
...
@@ -189,7 +189,6 @@ int Server::send(ConnectionContext *client, const char *buf, int data_len)
TimerStat
writeStat
(
*
write_socket_metric_
);
TimerStat
writeStat
(
*
write_socket_metric_
);
MUTEX_LOCK
(
&
client
->
mutex
);
MUTEX_LOCK
(
&
client
->
mutex
);
int
wlen
=
0
;
int
ret
=
common
::
writen
(
client
->
fd
,
buf
,
data_len
);
int
ret
=
common
::
writen
(
client
->
fd
,
buf
,
data_len
);
if
(
ret
<
0
)
{
if
(
ret
<
0
)
{
LOG_ERROR
(
"Failed to send data back to client. ret=%d, error=%s"
,
ret
,
strerror
(
errno
));
LOG_ERROR
(
"Failed to send data back to client. ret=%d, error=%s"
,
ret
,
strerror
(
errno
));
...
...
src/observer/sql/stmt/select_stmt.cpp
浏览文件 @
d5c676a5
...
@@ -46,7 +46,7 @@ RC SelectStmt::create(Db *db, const Selects &select_sql, Stmt *&stmt)
...
@@ -46,7 +46,7 @@ RC SelectStmt::create(Db *db, const Selects &select_sql, Stmt *&stmt)
// collect tables in `from` statement
// collect tables in `from` statement
std
::
vector
<
Table
*>
tables
;
std
::
vector
<
Table
*>
tables
;
std
::
unordered_map
<
std
::
string
,
Table
*>
table_map
;
std
::
unordered_map
<
std
::
string
,
Table
*>
table_map
;
for
(
in
t
i
=
0
;
i
<
select_sql
.
relation_num
;
i
++
)
{
for
(
size_
t
i
=
0
;
i
<
select_sql
.
relation_num
;
i
++
)
{
const
char
*
table_name
=
select_sql
.
relations
[
i
];
const
char
*
table_name
=
select_sql
.
relations
[
i
];
if
(
nullptr
==
table_name
)
{
if
(
nullptr
==
table_name
)
{
LOG_WARN
(
"invalid argument. relation name is null. index=%d"
,
i
);
LOG_WARN
(
"invalid argument. relation name is null. index=%d"
,
i
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录