james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From n...@apache.org
Subject svn commit: r325989 - /james/server/trunk/src/java/org/apache/james/mailrepository/AvalonMailRepository.java
Date Mon, 17 Oct 2005 21:52:31 GMT
Author: noel
Date: Mon Oct 17 14:52:25 2005
New Revision: 325989

URL: http://svn.apache.org/viewcvs?rev=325989&view=rev
Log:
Applied Guru Shenoy's patch to fix CPU utilization problem with multiple delivery threads.

Modified:
    james/server/trunk/src/java/org/apache/james/mailrepository/AvalonMailRepository.java

Modified: james/server/trunk/src/java/org/apache/james/mailrepository/AvalonMailRepository.java
URL: http://svn.apache.org/viewcvs/james/server/trunk/src/java/org/apache/james/mailrepository/AvalonMailRepository.java?rev=325989&r1=325988&r2=325989&view=diff
==============================================================================
--- james/server/trunk/src/java/org/apache/james/mailrepository/AvalonMailRepository.java
(original)
+++ james/server/trunk/src/java/org/apache/james/mailrepository/AvalonMailRepository.java
Mon Oct 17 14:52:25 2005
@@ -200,9 +200,6 @@
                             .append(new java.util.Date(System.currentTimeMillis()));
                 getLogger().debug(debugBuffer.toString());
             }
-            synchronized (this) {
-                notify();
-            }
             return true;
         } else {
             return false;
@@ -303,6 +300,9 @@
                 if (!wasLocked) {
                     // If it wasn't locked, we need to unlock now
                     unlock(key);
+                    synchronized (this) {
+                        notify();
+                    }
                 }
             }
 



---------------------------------------------------------------------
To unsubscribe, e-mail: server-dev-unsubscribe@james.apache.org
For additional commands, e-mail: server-dev-help@james.apache.org


Mime
View raw message