CVS update: JGroups/src/org/jgroups/protocols/pbcast NAKACK.java
"Bela Ban" <[email protected]> Wed, 22 Sep 2010 08:16:55 +0000
| Newsgroups | gmane.comp.java.javagroups.cvs |
|---|---|
| Message-ID | <[email protected]> |
User: belaban
Date: 10/09/22 08:16:55
Modified: src/org/jgroups/protocols/pbcast NAKACK.java
Log:
minor simplification
Revision Changes Path
1.260 +7 -9 JGroups/src/org/jgroups/protocols/pbcast/NAKACK.java
Index: NAKACK.java
===================================================================
RCS file: /cvsroot/javagroups/JGroups/src/org/jgroups/protocols/pbcast/NAKACK.java,v
retrieving revision 1.259
retrieving revision 1.260
diff -u -r1.259 -r1.260
--- NAKACK.java 21 Sep 2010 07:00:27 -0000 1.259
+++ NAKACK.java 22 Sep 2010 08:16:55 -0000 1.260
@@ -32,7 +32,7 @@
* instead of the requester by setting use_mcast_xmit to true.
*
* @author Bela Ban
- * @version $Id: NAKACK.java,v 1.259 2010/09/21 07:00:27 belaban Exp $
+ * @version $Id: NAKACK.java,v 1.260 2010/09/22 08:16:55 belaban Exp $
*/
@MBean(description="Reliable transmission multipoint FIFO protocol")
@DeprecatedProperty(names={"max_xmit_size", "eager_lock_release", "stats_list_size"})
@@ -798,14 +798,12 @@
boolean added=loopback || win.add(hdr.seqno, msg);
// OOB msg is passed up. When removed, we discard it. Affects ordering: http://jira.jboss.com/jira/browse/JGRP-379
- if(msg.isFlagSet(Message.OOB)) {
- if(added) {
- if(loopback)
- msg=win.get(hdr.seqno);
- if(msg != null && msg.isFlagSet(Message.OOB)) {
- if(msg.setTransientFlagIfAbsent(Message.OOB_DELIVERED))
- up_prot.up(new Event(Event.MSG, msg));
- }
+ if(added && msg.isFlagSet(Message.OOB)) {
+ if(loopback)
+ msg=win.get(hdr.seqno); // we *have* to get a message, because loopback means we didn't add it to win !
+ if(msg != null && msg.isFlagSet(Message.OOB)) {
+ if(msg.setTransientFlagIfAbsent(Message.OOB_DELIVERED))
+ up_prot.up(new Event(Event.MSG, msg));
}
}
------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev