Browse files

Fix: Fencing: Remove shadow definition and use of variable 'progress'

  • Loading branch information...
1 parent 7d54502 commit 5ad4f88b7a5e492bd525f447bc3cd1b92c6c9c4a @beekhof committed Feb 28, 2014
Showing with 0 additions and 8 deletions.
  1. +0 −8 lib/fencing/st_client.c
View
8 lib/fencing/st_client.c
@@ -2421,7 +2421,6 @@ stonith_api_time(uint32_t nodeid, const char *uname, bool in_progress)
char *name = NULL;
time_t when = 0;
- time_t progress = 0;
stonith_t *st = NULL;
stonith_history_t *history, *hp = NULL;
enum stonith_call_options opts = st_opt_sync_call;
@@ -2453,9 +2452,6 @@ stonith_api_time(uint32_t nodeid, const char *uname, bool in_progress)
entries++;
if (in_progress) {
progress++;
- if (hp->state != st_done && hp->state != st_failed) {
- progress = time(NULL);
- }
} else if (hp->state == st_done) {
completed++;
@@ -2472,10 +2468,6 @@ stonith_api_time(uint32_t nodeid, const char *uname, bool in_progress)
}
}
- if (progress) {
- when = progress;
- }
-
if (st) {
st->cmds->disconnect(st);
stonith_api_delete(st);

0 comments on commit 5ad4f88

Please sign in to comment.