Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
BaiXuePrincess
milvus
提交
9b74b7ae
milvus
项目概览
BaiXuePrincess
/
milvus
与 Fork 源项目一致
从无法访问的项目Fork
通知
7
Star
4
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
milvus
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
9b74b7ae
编写于
6月 27, 2019
作者:
Z
zhiru
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update
Former-commit-id: c7a11335bbf73b5100243b31ca34c36257604909
上级
bd4977b6
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
8 addition
and
4 deletion
+8
-4
cpp/src/db/DBImpl.cpp
cpp/src/db/DBImpl.cpp
+1
-0
cpp/src/db/MySQLConnectionPool.h
cpp/src/db/MySQLConnectionPool.h
+1
-1
cpp/src/db/MySQLMetaImpl.cpp
cpp/src/db/MySQLMetaImpl.cpp
+3
-2
cpp/src/server/DBWrapper.cpp
cpp/src/server/DBWrapper.cpp
+3
-1
未找到文件。
cpp/src/db/DBImpl.cpp
浏览文件 @
9b74b7ae
...
...
@@ -600,6 +600,7 @@ void DBImpl::BackgroundCompaction(std::set<std::string> table_ids) {
int
ttl
=
1
;
if
(
options_
.
mode
==
"cluster"
)
{
ttl
=
meta
::
D_SEC
;
ENGINE_LOG_DEBUG
<<
"Server mode is cluster. Clean up files with ttl = "
<<
std
::
to_string
(
ttl
)
<<
"seconds."
;
}
meta_ptr_
->
CleanUpFilesWithTTL
(
ttl
);
}
...
...
cpp/src/db/MySQLConnectionPool.h
浏览文件 @
9b74b7ae
...
...
@@ -56,7 +56,7 @@ public:
// ENGINE_LOG_DEBUG << "conns_in_use_ in release: " << conns_in_use_ << std::endl;
--
conns_in_use_
;
if
(
conns_in_use_
<
0
)
{
ENGINE_LOG_
ERROR
<<
"MySQLConnetionPool::release: conns_in_use_ is less than zero. conns_in_use_ = "
<<
conns_in_use_
<<
std
::
endl
;
ENGINE_LOG_
WARNING
<<
"MySQLConnetionPool::release: conns_in_use_ is less than zero. conns_in_use_ = "
<<
conns_in_use_
<<
std
::
endl
;
}
}
...
...
cpp/src/db/MySQLMetaImpl.cpp
浏览文件 @
9b74b7ae
...
...
@@ -448,9 +448,10 @@ namespace meta {
Query
deleteTableFilesQuery
=
connectionPtr
->
query
();
//
deleteTableFilesQuery
<<
"UPDATE TableFiles "
<<
"SET
stat
e = "
<<
std
::
to_string
(
TableSchema
::
TO_DELETE
)
<<
", "
<<
"SET
file_typ
e = "
<<
std
::
to_string
(
TableSchema
::
TO_DELETE
)
<<
", "
<<
"updated_time = "
<<
std
::
to_string
(
utils
::
GetMicroSecTimeStamp
())
<<
" "
<<
"WHERE table_id = "
<<
quote
<<
table_id
<<
";"
;
"WHERE table_id = "
<<
quote
<<
table_id
<<
" AND "
<<
"file_type <> "
<<
std
::
to_string
(
TableSchema
::
TO_DELETE
)
<<
";"
;
if
(
!
deleteTableFilesQuery
.
exec
())
{
ENGINE_LOG_ERROR
<<
"QUERY ERROR WHEN DELETING TABLE FILES"
;
...
...
cpp/src/server/DBWrapper.cpp
浏览文件 @
9b74b7ae
...
...
@@ -23,7 +23,9 @@ DBWrapper::DBWrapper() {
if
(
index_size
>
0
)
{
//ensure larger than zero, unit is MB
opt
.
index_trigger_size
=
(
size_t
)
index_size
*
engine
::
ONE_MB
;
}
opt
.
mode
=
config
.
GetValue
(
CONFIG_CLUSTER_MODE
,
"single"
);
ConfigNode
&
serverConfig
=
ServerConfig
::
GetInstance
().
GetConfig
(
CONFIG_SERVER
);
opt
.
mode
=
serverConfig
.
GetValue
(
CONFIG_CLUSTER_MODE
,
"single"
);
// std::cout << "mode = " << opt.mode << std::endl;
CommonUtil
::
CreateDirectory
(
opt
.
meta
.
path
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录