serge 01/12/03 14:59:10
Modified: src/java/org/apache/james/mailrepository
JDBCMailRepository.java
Log:
Doesn't make sense to notify waiting threads when we acquire a lock. Only when we
release one.
Revision Changes Path
1.12 +1 -2
jakarta-james/src/java/org/apache/james/mailrepository/JDBCMailRepository.java
Index: JDBCMailRepository.java
===================================================================
RCS file:
/home/cvs/jakarta-james/src/java/org/apache/james/mailrepository/JDBCMailRepository.java,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- JDBCMailRepository.java 2001/11/05 12:18:25 1.11
+++ JDBCMailRepository.java 2001/12/03 22:59:10 1.12
@@ -287,7 +287,7 @@
public synchronized boolean lock(String key) {
if (lock.lock(key)) {
- notifyAll();
+ //notifyAll();
return true;
} else {
return false;
@@ -580,7 +580,6 @@
protected Connection getConnection() {
int attempts = 0;
while (attempts < 1000) {
- //System.err.println("trying " + attempts + " time");
try {
return datasource.getConnection();
} catch (SQLException e1) {
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>