update last_branch_seqcode iff it is higher than the original old one
authorMiloš Mulač <mulac@civ.zcu.cz>
Wed, 25 Jan 2006 13:46:02 +0000 (13:46 +0000)
committerMiloš Mulač <mulac@civ.zcu.cz>
Wed, 25 Jan 2006 13:46:02 +0000 (13:46 +0000)
org.glite.lb.server/src/process_event.c

index cb5d16d..7b0fb1d 100644 (file)
@@ -832,6 +832,10 @@ int processEvent(intJobStat *js, edg_wll_Event *e, int ev_seq, int strict, char
                        }
                        else rep(js->last_seqcode, e->any.seqcode);
                }
+
+               if (fine_res == RET_GOODBRANCH) {
+                       rep(js->last_branch_seqcode, e->any.seqcode);
+               }
        }
 
        if (USABLE_DATA(res,strict)) {
@@ -846,10 +850,6 @@ int processEvent(intJobStat *js, edg_wll_Event *e, int ev_seq, int strict, char
                }
        }
        
-       if (fine_res == RET_GOODBRANCH) {
-               rep(js->last_branch_seqcode, e->any.seqcode);
-       }
-
        return res;
 
 bad_event: