Blame SOURCES/bz1070916-pcmk-api_time_helper_now_returns_when_the_most_recent_fencing_operation_completed.patch

7100e8
commit 893a7468b83b8323ee343903617bbc72a7c3205b
7100e8
Author: David Vossel <dvossel@redhat.com>
7100e8
Date:   Thu Feb 27 11:50:32 2014 -0600
7100e8
7100e8
    Fix: stonith_api_time_helper now returns when the most recent fencing operation completed
7100e8
    
7100e8
    (cherry picked from commit 054fedfe70867c6f333b61e68fb64bf68e71c90b)
7100e8
    
7100e8
    Conflicts:
7100e8
    	lib/fencing/st_client.c
7100e8
7100e8
diff --git a/lib/fencing/st_client.c b/lib/fencing/st_client.c
7100e8
index 02f2836..4deb71f 100644
7100e8
--- a/lib/fencing/st_client.c
7100e8
+++ b/lib/fencing/st_client.c
7100e8
@@ -2458,7 +2458,9 @@ stonith_api_time(uint32_t nodeid, const char *uname, bool in_progress)
7100e8
 
7100e8
             } else if (hp->state == st_done) {
7100e8
                 completed++;
7100e8
-                when = hp->completed;
7100e8
+                if (hp->completed > when) {
7100e8
+                    when = hp->completed;
7100e8
+                }
7100e8
             }
7100e8
         }
7100e8