[jboss-cvs] JBoss Messaging SVN: r8631 - branches/Branch_1_4/src/main/org/jboss/messaging/core/impl/postoffice.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Thu Jul 24 11:15:52 EDT 2014


Author: gaohoward
Date: 2014-07-24 11:15:51 -0400 (Thu, 24 Jul 2014)
New Revision: 8631

Modified:
   branches/Branch_1_4/src/main/org/jboss/messaging/core/impl/postoffice/MessagingPostOffice.java
Log:
JBMESSAGING-1954 
MessagePostOffice.routeInternal() method may fail to release the readlock



Modified: branches/Branch_1_4/src/main/org/jboss/messaging/core/impl/postoffice/MessagingPostOffice.java
===================================================================
--- branches/Branch_1_4/src/main/org/jboss/messaging/core/impl/postoffice/MessagingPostOffice.java	2014-04-28 12:42:14 UTC (rev 8630)
+++ branches/Branch_1_4/src/main/org/jboss/messaging/core/impl/postoffice/MessagingPostOffice.java	2014-07-24 15:15:51 UTC (rev 8631)
@@ -3040,14 +3040,14 @@
          }
       }
       
-      //check inactive condition
-      if (inactiveConditions.contains(condition))
-      {
-         throw new IllegalStateException("Destination " + condition + " not active!");
-      }
-      
       try
       {
+         //check inactive condition
+         if (inactiveConditions.contains(condition))
+         {
+            throw new IllegalStateException("Destination " + condition + " not active!");
+         }
+
          List queues = (List)mappings.get(condition);
          
          if (queues != null)



More information about the jboss-cvs-commits mailing list