You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by rm...@apache.org on 2011/11/02 05:53:04 UTC
svn commit: r1196454 -
/lucene/dev/branches/lucene2621/lucene/src/java/org/apache/lucene/index/codecs/DefaultSegmentInfosReader.java
Author: rmuir
Date: Wed Nov 2 04:53:04 2011
New Revision: 1196454
URL: http://svn.apache.org/viewvc?rev=1196454&view=rev
Log:
LUCENE-3490: nocommit -> TODO
Modified:
lucene/dev/branches/lucene2621/lucene/src/java/org/apache/lucene/index/codecs/DefaultSegmentInfosReader.java
Modified: lucene/dev/branches/lucene2621/lucene/src/java/org/apache/lucene/index/codecs/DefaultSegmentInfosReader.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/lucene2621/lucene/src/java/org/apache/lucene/index/codecs/DefaultSegmentInfosReader.java?rev=1196454&r1=1196453&r2=1196454&view=diff
==============================================================================
--- lucene/dev/branches/lucene2621/lucene/src/java/org/apache/lucene/index/codecs/DefaultSegmentInfosReader.java (original)
+++ lucene/dev/branches/lucene2621/lucene/src/java/org/apache/lucene/index/codecs/DefaultSegmentInfosReader.java Wed Nov 2 04:53:04 2011
@@ -34,7 +34,14 @@ import org.apache.lucene.store.IOContext
*/
public class DefaultSegmentInfosReader extends SegmentInfosReader {
- // nocommit: shove all backwards code to preflex!
+ // TODO: shove all backwards code to preflex!
+ // this is a little tricky, because of IR.commit(), two options:
+ // 1. PreFlex writes 4.x SIS format, but reads both 3.x and 4.x
+ // (and maybe RW always only writes the 3.x one? for that to work well,
+ // we have to move .fnx file to codec too, not too bad but more work).
+ // or we just have crappier RW testing like today.
+ // 2. PreFlex writes 3.x SIS format, and only reads 3.x
+ // (in this case we have to move .fnx file to codec as well)
@Override
public void read(Directory directory, String segmentsFileName, ChecksumIndexInput input, SegmentInfos infos, IOContext context) throws IOException {
infos.version = input.readLong(); // read version