Author: orudyy
Date: Tue Oct 18 13:40:39 2016
New Revision: 1765441

URL: http://svn.apache.org/viewvc?rev=1765441&view=rev
Log:
QPID-7453: Revert changes under revision https://svn.apache.org/r1763765 to fix 
the performance degradation caused by the commit

Modified:
    
qpid/java/trunk/broker-core/src/main/java/org/apache/qpid/server/transport/SelectorThread.java

Modified: 
qpid/java/trunk/broker-core/src/main/java/org/apache/qpid/server/transport/SelectorThread.java
URL: 
http://svn.apache.org/viewvc/qpid/java/trunk/broker-core/src/main/java/org/apache/qpid/server/transport/SelectorThread.java?rev=1765441&r1=1765440&r2=1765441&view=diff
==============================================================================
--- 
qpid/java/trunk/broker-core/src/main/java/org/apache/qpid/server/transport/SelectorThread.java
 (original)
+++ 
qpid/java/trunk/broker-core/src/main/java/org/apache/qpid/server/transport/SelectorThread.java
 Tue Oct 18 13:40:39 2016
@@ -332,16 +332,13 @@ class SelectorThread extends Thread
                         {
                             clearSelecting();
                         }
-
-                        if (!connections.isEmpty())
+                        _workQueue.addAll(connections);
+                        _workQueue.add(this);
+                        for (ConnectionProcessor connectionProcessor : 
connections)
                         {
-                            _workQueue.addAll(connections);
-                            _workQueue.add(this);
-                            for (ConnectionProcessor connectionProcessor : 
connections)
-                            {
-                                connectionProcessor.processConnection();
-                            }
+                            connectionProcessor.processConnection();
                         }
+
                     }
                     else
                     {



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@qpid.apache.org
For additional commands, e-mail: commits-h...@qpid.apache.org

Reply via email to