!4 update health monitor process when container paused and unpaused
Merge pull request !4 from JingWoo/master
This commit is contained in:
commit
9b76ecf1a7
@ -553,6 +553,7 @@ static int resume_container(container_t *cont)
|
|||||||
}
|
}
|
||||||
|
|
||||||
state_reset_paused(cont->state);
|
state_reset_paused(cont->state);
|
||||||
|
update_health_monitor(cont->common_config->id);
|
||||||
|
|
||||||
if (container_to_disk(cont)) {
|
if (container_to_disk(cont)) {
|
||||||
ERROR("Failed to save container \"%s\" to disk", id);
|
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);
|
state_set_paused(cont->state);
|
||||||
|
update_health_monitor(cont->common_config->id);
|
||||||
|
|
||||||
if (container_to_disk(cont)) {
|
if (container_to_disk(cont)) {
|
||||||
ERROR("Failed to save container \"%s\" to disk", id);
|
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);
|
EVENT("Event: {Object: %s, Type: Paused}", id);
|
||||||
|
|
||||||
update_health_monitor(id);
|
|
||||||
|
|
||||||
pack_response:
|
pack_response:
|
||||||
pack_pause_response(*response, cc, id);
|
pack_pause_response(*response, cc, id);
|
||||||
container_unref(cont);
|
container_unref(cont);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user