lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mikemcc...@apache.org
Subject svn commit: r1137357 - /lucene/dev/trunk/lucene/src/java/org/apache/lucene/index/UpgradeIndexMergePolicy.java
Date Sun, 19 Jun 2011 12:15:16 GMT
Author: mikemccand
Date: Sun Jun 19 12:15:15 2011
New Revision: 1137357

URL: http://svn.apache.org/viewvc?rev=1137357&view=rev
Log:
use keySet() view to remove merging segments

Modified:
    lucene/dev/trunk/lucene/src/java/org/apache/lucene/index/UpgradeIndexMergePolicy.java

Modified: lucene/dev/trunk/lucene/src/java/org/apache/lucene/index/UpgradeIndexMergePolicy.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/lucene/src/java/org/apache/lucene/index/UpgradeIndexMergePolicy.java?rev=1137357&r1=1137356&r2=1137357&view=diff
==============================================================================
--- lucene/dev/trunk/lucene/src/java/org/apache/lucene/index/UpgradeIndexMergePolicy.java
(original)
+++ lucene/dev/trunk/lucene/src/java/org/apache/lucene/index/UpgradeIndexMergePolicy.java
Sun Jun 19 12:15:15 2011
@@ -101,9 +101,7 @@ public class UpgradeIndexMergePolicy ext
       // the resulting set contains all segments that are left over
       // and will be merged to one additional segment:
       for (final OneMerge om : spec.merges) {
-        for(SegmentInfo info : om.segments) {
-          oldSegments.remove(info);
-        }
+        oldSegments.keySet().removeAll(om.segments);
       }
     }
 



Mime
View raw message