Author: mriou
Date: Tue Mar  6 15:47:33 2007
New Revision: 515372

URL: http://svn.apache.org/viewvc?view=rev&rev=515372
Log:
Fixing a big making the newest processes being ripped in case of count-based 
reaping.

Modified:
    
incubator/ode/trunk/bpel-runtime/src/main/java/org/apache/ode/bpel/engine/CountLRUDehydrationPolicy.java

Modified: 
incubator/ode/trunk/bpel-runtime/src/main/java/org/apache/ode/bpel/engine/CountLRUDehydrationPolicy.java
URL: 
http://svn.apache.org/viewvc/incubator/ode/trunk/bpel-runtime/src/main/java/org/apache/ode/bpel/engine/CountLRUDehydrationPolicy.java?view=diff&rev=515372&r1=515371&r2=515372
==============================================================================
--- 
incubator/ode/trunk/bpel-runtime/src/main/java/org/apache/ode/bpel/engine/CountLRUDehydrationPolicy.java
 (original)
+++ 
incubator/ode/trunk/bpel-runtime/src/main/java/org/apache/ode/bpel/engine/CountLRUDehydrationPolicy.java
 Tue Mar  6 15:47:33 2007
@@ -33,8 +33,8 @@
             runningProcesses.removeAll(ripped);
             Collections.sort(runningProcesses, new Comparator<BpelProcess>() {
                 public int compare(BpelProcess p1, BpelProcess p2) {
-                    if (p1.getLastUsed() > p2.getLastUsed()) return 1;
-                    if (p1.getLastUsed() < p2.getLastUsed()) return -1;
+                    if (p1.getLastUsed() > p2.getLastUsed()) return -1;
+                    if (p1.getLastUsed() < p2.getLastUsed()) return 1;
                     return 0;
                 }
             });


Reply via email to