Lockless commits: LUCENE-701

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@476371 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael McCandless 2006-11-17 23:43:47 +00:00
parent 9b7d1209ac
commit 79bf43b2a4
2 changed files with 6 additions and 6 deletions

View File

@ -28,10 +28,10 @@ final class SegmentInfo {
public Directory dir; // where segment resides public Directory dir; // where segment resides
private boolean preLockless; // true if this is a segments file written before private boolean preLockless; // true if this is a segments file written before
// lock-less commits (XXX) // lock-less commits (2.1)
private long delGen; // current generation of del file; -1 if there private long delGen; // current generation of del file; -1 if there
// are no deletes; 0 if it's a pre-XXX segment // are no deletes; 0 if it's a pre-2.1 segment
// (and we must check filesystem); 1 or higher if // (and we must check filesystem); 1 or higher if
// there are deletes at generation N // there are deletes at generation N
@ -41,7 +41,7 @@ final class SegmentInfo {
// there are no separate norms // there are no separate norms
private byte isCompoundFile; // -1 if it is not; 1 if it is; 0 if it's private byte isCompoundFile; // -1 if it is not; 1 if it is; 0 if it's
// pre-XXX (ie, must check file system to see // pre-2.1 (ie, must check file system to see
// if <name>.cfs exists) // if <name>.cfs exists)
public SegmentInfo(String name, int docCount, Directory dir) { public SegmentInfo(String name, int docCount, Directory dir) {
@ -98,7 +98,7 @@ final class SegmentInfo {
void setNumField(int numField) { void setNumField(int numField) {
if (normGen == null) { if (normGen == null) {
// normGen is null if we loaded a pre-XXX segment // normGen is null if we loaded a pre-2.1 segment
// file, or, if this segments file hasn't had any // file, or, if this segments file hasn't had any
// norms set against it yet: // norms set against it yet:
normGen = new long[numField]; normGen = new long[numField];
@ -285,7 +285,7 @@ final class SegmentInfo {
* *
* @param directory directory to check. This parameter is * @param directory directory to check. This parameter is
* only used when the segment was written before version * only used when the segment was written before version
* XXX (at which point compound file or not became stored * 2.1 (at which point compound file or not became stored
* in the segments info file). * in the segments info file).
*/ */
boolean getUseCompoundFile() throws IOException { boolean getUseCompoundFile() throws IOException {

View File

@ -23,7 +23,7 @@ import java.util.*;
import java.util.zip.*; import java.util.zip.*;
/* /*
Verify we can read the pre-XXX file format, do searches Verify we can read the pre-2.1 file format, do searches
against it, and add documents to it. against it, and add documents to it.
*/ */