Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP1:Update
pacemaker.3577
pacemaker-crm_resource-restart-count-starting-r...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File pacemaker-crm_resource-restart-count-starting-resources.patch of Package pacemaker.3577
commit 020ff3810c12bbc6ef6ec212958871bb36b5859a Author: Ken Gaillot <kgaillot@redhat.com> Date: Sun Jun 12 13:37:59 2016 -0500 Fix: tools: correctly count starting resources when doing crm_resource --restart diff --git a/tools/crm_resource_runtime.c b/tools/crm_resource_runtime.c index 82856ad..b246e34 100644 --- a/tools/crm_resource_runtime.c +++ b/tools/crm_resource_runtime.c @@ -1178,7 +1178,7 @@ cli_resource_restart(resource_t * rsc, const char *host, int timeout_ms, cib_t * dump_list(list_delta, "Delta"); } - crm_trace("%d (was %d) resources remaining", before, g_list_length(list_delta)); + crm_trace("%d (was %d) resources remaining", g_list_length(list_delta), before); if(before == g_list_length(list_delta)) { /* aborted during stop phase, print the contents of list_delta */ fprintf(stderr, "Could not complete shutdown of %s, %d resources remaining\n", rsc_id, g_list_length(list_delta)); @@ -1209,6 +1209,7 @@ cli_resource_restart(resource_t * rsc, const char *host, int timeout_ms, cib_t * step_timeout_s = timeout / sleep_interval; while(g_list_length(list_delta) > 0) { + before = g_list_length(list_delta); if(timeout_ms == 0) { step_timeout_s = max_delay_in(&data_set, list_delta) / sleep_interval; } @@ -1241,7 +1242,7 @@ cli_resource_restart(resource_t * rsc, const char *host, int timeout_ms, cib_t * goto failure; } - } while(g_list_length(list_delta) > 0); + } free(rsc_id); return pcmk_ok;
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor