提交 9b76ecf1 编写于 作者: O openeuler-ci-bot 提交者: Gitee

!4 update health monitor process when container paused and unpaused

Merge pull request !4 from JingWoo/master
......@@ -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.
先完成此消息的编辑!
想要评论请 注册