[jboss-cvs] JBossCache/src/org/jboss/cache ...
Brian Stansberry
brian.stansberry at jboss.com
Thu Mar 22 16:08:54 EDT 2007
User: bstansberry
Date: 07/03/22 16:08:54
Modified: src/org/jboss/cache ReplicationQueue.java
Log:
[JBCACHE-1012] Don't issue a replication call if there's nothing in the queue
Revision Changes Path
1.14 +11 -8 JBossCache/src/org/jboss/cache/ReplicationQueue.java
(In the diff below, changes in quantity of whitespace are not shown.)
Index: ReplicationQueue.java
===================================================================
RCS file: /cvsroot/jboss/JBossCache/src/org/jboss/cache/ReplicationQueue.java,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -b -r1.13 -r1.14
--- ReplicationQueue.java 2 Jan 2007 17:15:29 -0000 1.13
+++ ReplicationQueue.java 22 Mar 2007 20:08:54 -0000 1.14
@@ -23,7 +23,7 @@
* Periodically (or when certain size is exceeded) takes elements and replicates them.
*
* @author <a href="mailto:bela at jboss.org">Bela Ban</a> May 24, 2003
- * @version $Revision: 1.13 $
+ * @version $Revision: 1.14 $
*/
public class ReplicationQueue
{
@@ -172,6 +172,8 @@
elements.clear();
}
+ if (l.size() > 0)
+ {
try
{
// send to all live nodes in the cluster
@@ -182,6 +184,7 @@
log.error("failed replicating " + l.size() + " elements in replication queue", t);
}
}
+ }
class MyTask extends TimerTask
{
More information about the jboss-cvs-commits
mailing list