提交 6efcdd4c 编写于 作者: W wujing

update health monitor process when container paused and unpaused

Signed-off-by: Nwujing <wujing50@huawei.com>
上级 5524a018
......@@ -553,6 +553,7 @@ static int resume_container(container_t *cont)
}
state_reset_paused(cont->state);
update_health_monitor(cont->common_config->id);
if (container_to_disk(cont)) {
ERROR("Failed to save container \"%s\" to disk", id);
......@@ -738,6 +739,7 @@ static int pause_container(container_t *cont)
}
state_set_paused(cont->state);
update_health_monitor(cont->common_config->id);
if (container_to_disk(cont)) {
ERROR("Failed to save container \"%s\" to disk", id);
......@@ -831,8 +833,6 @@ static int container_pause_cb(const container_pause_request *request,
EVENT("Event: {Object: %s, Type: Paused}", id);
update_health_monitor(id);
pack_response:
pack_pause_response(*response, cc, id);
container_unref(cont);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册