mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Matthew Swift
21.41.2012 803ce3c618cafc9f3aaa659526976fb0115bfefa
Fix formatting
1 files modified
8 ■■■■■ changed files
opendj3/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/RoundRobinLoadBalancingAlgorithm.java 8 ●●●●● patch | view | raw | blame | history
opendj3/opendj-ldap-sdk/src/main/java/org/forgerock/opendj/ldap/RoundRobinLoadBalancingAlgorithm.java
@@ -124,8 +124,7 @@
    @Override
    int getInitialConnectionFactoryIndex() {
        // A round robin pool of one connection factories is unlikely in
        // practice
        // and requires special treatment.
        // practice and requires special treatment.
        if (maxIndex == 1) {
            return 0;
        }
@@ -142,9 +141,8 @@
        } while (!nextIndex.compareAndSet(oldNextIndex, newNextIndex));
        // There's a potential, but benign, race condition here: other threads
        // could
        // jump in and rotate through the list before we return the connection
        // factory.
        // could jump in and rotate through the list before we return the
        // connection factory.
        return newNextIndex;
    }