directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akaras...@apache.org
Subject svn commit: r470534 - in /directory/trunks/apacheds/mitosis/src/main/java/org/apache/directory/mitosis: common/Replica.java configuration/ReplicationConfiguration.java
Date Thu, 02 Nov 2006 21:39:55 GMT
Author: akarasulu
Date: Thu Nov  2 13:39:55 2006
New Revision: 470534

URL: http://svn.apache.org/viewvc?view=rev&rev=470534
Log:
couple serious bugs with configuration

Modified:
    directory/trunks/apacheds/mitosis/src/main/java/org/apache/directory/mitosis/common/Replica.java
    directory/trunks/apacheds/mitosis/src/main/java/org/apache/directory/mitosis/configuration/ReplicationConfiguration.java

Modified: directory/trunks/apacheds/mitosis/src/main/java/org/apache/directory/mitosis/common/Replica.java
URL: http://svn.apache.org/viewvc/directory/trunks/apacheds/mitosis/src/main/java/org/apache/directory/mitosis/common/Replica.java?view=diff&rev=470534&r1=470533&r2=470534
==============================================================================
--- directory/trunks/apacheds/mitosis/src/main/java/org/apache/directory/mitosis/common/Replica.java
(original)
+++ directory/trunks/apacheds/mitosis/src/main/java/org/apache/directory/mitosis/common/Replica.java
Thu Nov  2 13:39:55 2006
@@ -71,7 +71,7 @@
             throw new IllegalArgumentException( "Replica ID not found: " + replica );
         }
         
-        int colonPos = replica.indexOf( atPos,  ':' );
+        int colonPos = replica.indexOf( ':', atPos );
         
         if ( colonPos < 0 )
         {

Modified: directory/trunks/apacheds/mitosis/src/main/java/org/apache/directory/mitosis/configuration/ReplicationConfiguration.java
URL: http://svn.apache.org/viewvc/directory/trunks/apacheds/mitosis/src/main/java/org/apache/directory/mitosis/configuration/ReplicationConfiguration.java?view=diff&rev=470534&r1=470533&r2=470534
==============================================================================
--- directory/trunks/apacheds/mitosis/src/main/java/org/apache/directory/mitosis/configuration/ReplicationConfiguration.java
(original)
+++ directory/trunks/apacheds/mitosis/src/main/java/org/apache/directory/mitosis/configuration/ReplicationConfiguration.java
Thu Nov  2 13:39:55 2006
@@ -269,7 +269,7 @@
         {
             Replica replica = ( Replica ) peer.next();
             
-            if ( ids.contains( replica.getId() ) ) 
+            if ( ids.contains( replica.getId().getId() ) ) 
             {
                 log.error( "Peer replica ID '{}' has already been declared.", replica.getId()
);
                 throw new ReplicationConfigurationException( "Peer replica ID '" + replica.getId()
+ "' has already been declared." );



Mime
View raw message