lucene-java-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mikemcc...@apache.org
Subject svn commit: r664419 - /lucene/java/trunk/src/java/org/apache/lucene/index/IndexCommit.java
Date Sun, 08 Jun 2008 00:51:11 GMT
Author: mikemccand
Date: Sat Jun  7 17:51:11 2008
New Revision: 664419

URL: http://svn.apache.org/viewvc?rev=664419&view=rev
Log:
fix IndexCommit.equals to compare version of the commit instead of segments filename, in addition
to the Directory

Modified:
    lucene/java/trunk/src/java/org/apache/lucene/index/IndexCommit.java

Modified: lucene/java/trunk/src/java/org/apache/lucene/index/IndexCommit.java
URL: http://svn.apache.org/viewvc/lucene/java/trunk/src/java/org/apache/lucene/index/IndexCommit.java?rev=664419&r1=664418&r2=664419&view=diff
==============================================================================
--- lucene/java/trunk/src/java/org/apache/lucene/index/IndexCommit.java (original)
+++ lucene/java/trunk/src/java/org/apache/lucene/index/IndexCommit.java Sat Jun  7 17:51:11
2008
@@ -81,7 +81,7 @@
   public boolean equals(Object other) {
     if (other instanceof IndexCommit) {
       IndexCommit otherCommit = (IndexCommit) other;
-      return otherCommit.getDirectory().equals(getDirectory()) && otherCommit.getSegmentsFileName().equals(getSegmentsFileName());
+      return otherCommit.getDirectory().equals(getDirectory()) && otherCommit.getVersion()
== getVersion();
     } else
       return false;
   }



Mime
View raw message