Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
2dot5
ClickHouse
提交
f497b0c6
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,发现更多精彩内容 >>
提交
f497b0c6
编写于
11月 19, 2017
作者:
A
Alexey Milovidov
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
BackgroundSchedulePool: miscellaneous; added TODO [#CLICKHOUSE-2].
上级
69714f06
变更
5
显示空白变更内容
内联
并排
Showing
5 changed file
with
5 addition
and
4 deletion
+5
-4
dbms/src/Common/ZooKeeper/Types.h
dbms/src/Common/ZooKeeper/Types.h
+1
-1
dbms/src/Common/ZooKeeper/ZooKeeper.cpp
dbms/src/Common/ZooKeeper/ZooKeeper.cpp
+1
-0
dbms/src/Interpreters/Context.cpp
dbms/src/Interpreters/Context.cpp
+1
-1
dbms/src/Interpreters/Settings.h
dbms/src/Interpreters/Settings.h
+1
-1
dbms/src/Storages/StorageReplicatedMergeTree.h
dbms/src/Storages/StorageReplicatedMergeTree.h
+1
-1
未找到文件。
dbms/src/Common/ZooKeeper/Types.h
浏览文件 @
f497b0c6
...
...
@@ -150,7 +150,7 @@ namespace CreateMode
}
using
EventPtr
=
std
::
shared_ptr
<
Poco
::
Event
>
;
using
TaskHandlePtr
=
DB
::
BackgroundSchedulePool
::
TaskHandle
;
using
TaskHandlePtr
=
DB
::
BackgroundSchedulePool
::
TaskHandle
;
/// TODO Need to remove this dependency.
class
ZooKeeper
;
...
...
dbms/src/Common/ZooKeeper/ZooKeeper.cpp
浏览文件 @
f497b0c6
...
...
@@ -273,6 +273,7 @@ int32_t ZooKeeper::getChildrenImpl(const std::string & path, Strings & res,
return
code
;
}
Strings
ZooKeeper
::
getChildren
(
const
std
::
string
&
path
,
Stat
*
stat
,
const
EventPtr
&
watch
)
{
...
...
dbms/src/Interpreters/Context.cpp
浏览文件 @
f497b0c6
...
...
@@ -1233,7 +1233,7 @@ BackgroundSchedulePool & Context::getSchedulePool()
{
auto
lock
=
getLock
();
if
(
!
shared
->
schedule_pool
)
shared
->
schedule_pool
=
std
::
make_shared
<
BackgroundSchedulePool
>
(
settings
.
schedule_background
_pool_size
);
shared
->
schedule_pool
=
std
::
make_shared
<
BackgroundSchedulePool
>
(
settings
.
background_schedule
_pool_size
);
return
*
shared
->
schedule_pool
;
}
...
...
dbms/src/Interpreters/Settings.h
浏览文件 @
f497b0c6
...
...
@@ -77,7 +77,7 @@ struct Settings
M(SettingUInt64, background_pool_size, DBMS_DEFAULT_BACKGROUND_POOL_SIZE) \
/** Number of threads performing background tasks for replicated tables. \
* TODO: Now only applies when the server is started. You can make it dynamically variable. */
\
M(SettingUInt64,
schedule_background
_pool_size, DBMS_DEFAULT_BACKGROUND_POOL_SIZE) \
M(SettingUInt64,
background_schedule
_pool_size, DBMS_DEFAULT_BACKGROUND_POOL_SIZE) \
\
/** Sleep time for StorageDistributed DirectoryMonitors in case there is no work or exception has been thrown */
\
M(SettingMilliseconds, distributed_directory_monitor_sleep_time_ms, DBMS_DISTRIBUTED_DIRECTORY_MONITOR_SLEEP_TIME_MS) \
...
...
dbms/src/Storages/StorageReplicatedMergeTree.h
浏览文件 @
f497b0c6
...
...
@@ -359,7 +359,7 @@ private:
/** Copies the new entries from the logs of all replicas to the queue of this replica.
* If next_update_event != nullptr, calls this event when new entries appear in the log.
*/
void
pullLogsToQueue
(
BackgroundSchedulePool
::
TaskHandle
=
nullptr
);
void
pullLogsToQueue
(
BackgroundSchedulePool
::
TaskHandle
next_update_event
=
nullptr
);
/** Execute the action from the queue. Throws an exception if something is wrong.
* Returns whether or not it succeeds. If it did not work, write it to the end of the queue.
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录