james-server-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From n...@apache.org
Subject svn commit: r326030 - /james/server/trunk/src/java/org/apache/james/mailrepository/JDBCMailRepository.java
Date Tue, 18 Oct 2005 04:57:39 GMT
Author: noel
Date: Mon Oct 17 21:57:30 2005
New Revision: 326030

URL: http://svn.apache.org/viewcvs?rev=326030&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/JDBCMailRepository.java

Modified: james/server/trunk/src/java/org/apache/james/mailrepository/JDBCMailRepository.java
URL: http://svn.apache.org/viewcvs/james/server/trunk/src/java/org/apache/james/mailrepository/JDBCMailRepository.java?rev=326030&r1=326029&r2=326030&view=diff
==============================================================================
--- james/server/trunk/src/java/org/apache/james/mailrepository/JDBCMailRepository.java (original)
+++ james/server/trunk/src/java/org/apache/james/mailrepository/JDBCMailRepository.java Mon
Oct 17 21:57:30 2005
@@ -493,9 +493,6 @@
                             .append(new java.util.Date(System.currentTimeMillis()));
                 getLogger().debug(debugBuffer.toString());
             }
-            synchronized (this) {
-                notify();
-            }
             return true;
         } else {
             return false;
@@ -772,6 +769,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