You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by cz...@apache.org on 2013/07/04 10:59:33 UTC

svn commit: r1499690 - /sling/trunk/bundles/extensions/discovery/impl/src/main/java/org/apache/sling/discovery/impl/cluster/ClusterViewServiceImpl.java

Author: cziegeler
Date: Thu Jul  4 08:59:33 2013
New Revision: 1499690

URL: http://svn.apache.org/r1499690
Log:
SLING-2930 :  Wasted work in ClusterViewServiceImpl.getClusterView()   . Apply patch from Adrian Nistor

Modified:
    sling/trunk/bundles/extensions/discovery/impl/src/main/java/org/apache/sling/discovery/impl/cluster/ClusterViewServiceImpl.java

Modified: sling/trunk/bundles/extensions/discovery/impl/src/main/java/org/apache/sling/discovery/impl/cluster/ClusterViewServiceImpl.java
URL: http://svn.apache.org/viewvc/sling/trunk/bundles/extensions/discovery/impl/src/main/java/org/apache/sling/discovery/impl/cluster/ClusterViewServiceImpl.java?rev=1499690&r1=1499689&r2=1499690&view=diff
==============================================================================
--- sling/trunk/bundles/extensions/discovery/impl/src/main/java/org/apache/sling/discovery/impl/cluster/ClusterViewServiceImpl.java (original)
+++ sling/trunk/bundles/extensions/discovery/impl/src/main/java/org/apache/sling/discovery/impl/cluster/ClusterViewServiceImpl.java Thu Jul  4 08:59:33 2013
@@ -146,6 +146,7 @@ public class ClusterViewServiceImpl impl
                 InstanceDescription instance = it.next();
                 if (instance.isLocal()) {
                     foundLocal = true;
+                    break;
                 }
             }
             if (foundLocal) {