update health monitor process when container paused and unpaused
Signed-off-by: wujing <wujing50@huawei.com>
This commit is contained in:
parent
5524a018f0
commit
6efcdd4c58
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user