Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
2dot5
ClickHouse
提交
3af3ce2c
C
ClickHouse
项目概览
2dot5
/
ClickHouse
通知
3
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
C
ClickHouse
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
3af3ce2c
编写于
12月 26, 2019
作者:
N
Nikita Mikhaylov
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix stupid bug
上级
230694e1
变更
1
显示空白变更内容
内联
并排
Showing
1 changed file
with
4 addition
and
4 deletion
+4
-4
dbms/src/Dictionaries/CacheDictionary.cpp
dbms/src/Dictionaries/CacheDictionary.cpp
+4
-4
未找到文件。
dbms/src/Dictionaries/CacheDictionary.cpp
浏览文件 @
3af3ce2c
...
...
@@ -671,7 +671,7 @@ void registerDictionaryCache(DictionaryFactory & factory)
ErrorCodes
::
BAD_ARGUMENTS
};
const
auto
&
layout_prefix
=
config_prefix
+
".layout"
;
const
auto
size
=
config
.
getUInt64
(
layout_prefix
+
".cache.size_in_cells"
);
const
size_t
size
=
config
.
getUInt64
(
layout_prefix
+
".cache.size_in_cells"
);
if
(
size
==
0
)
throw
Exception
{
name
+
": dictionary of layout 'cache' cannot have 0 cells"
,
ErrorCodes
::
TOO_SMALL_BUFFER_SIZE
};
...
...
@@ -683,7 +683,7 @@ void registerDictionaryCache(DictionaryFactory & factory)
const
DictionaryLifetime
dict_lifetime
{
config
,
config_prefix
+
".lifetime"
};
const
auto
max_update_queue_size
=
const
size_t
max_update_queue_size
=
config
.
getUInt64
(
layout_prefix
+
".cache.max_update_queue_size"
,
100000
);
if
(
max_update_queue_size
==
0
)
throw
Exception
{
name
+
": dictionary of layout 'cache' cannot have empty update queue of size 0"
,
...
...
@@ -692,7 +692,7 @@ void registerDictionaryCache(DictionaryFactory & factory)
const
bool
allow_read_expired_keys
=
config
.
getBool
(
layout_prefix
+
".cache.allow_read_expired_keys"
,
false
);
const
auto
update_queue_push_timeout_milliseconds
=
const
size_t
update_queue_push_timeout_milliseconds
=
config
.
getUInt64
(
layout_prefix
+
".cache.update_queue_push_timeout_milliseconds"
,
10
);
if
(
update_queue_push_timeout_milliseconds
<
10
)
throw
Exception
{
name
+
": dictionary of layout 'cache' have too little update_queue_push_timeout"
,
...
...
@@ -700,7 +700,7 @@ void registerDictionaryCache(DictionaryFactory & factory)
return
std
::
make_unique
<
CacheDictionary
>
(
name
,
dict_struct
,
std
::
move
(
source_ptr
),
dict_lifetime
,
size
,
max_update_queue_size
,
allow_read_expired_keys
,
update_queue_push_timeout_milliseconds
);
allow_read_expired_keys
,
max_update_queue_size
,
update_queue_push_timeout_milliseconds
);
};
factory
.
registerLayout
(
"cache"
,
create_layout
,
false
);
}
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录