/[Apache-SVN]
ViewVC logotype

Revision 494136


Jump to revision: Previous Next
Author: mikemccand
Date: Mon Jan 8 18:11:08 2007 UTC (17 years, 8 months ago)
Changed paths: 5
Log Message:
LUCENE-140: Add bounds checking to BitVector's get, set, clear methods
to prevent index corruption on calling IndexReader.deleteDocument(int
docNum) on a "slightly" out of bounds docNum.  Other changes:

  * In IndexReader.deleteDocument, set hasChanges to true before
    calling doDelete in case an Exception is hit in doDelete.

  * Changed the "docs out of order" check to be tighter (<= instead of
    <) to catch boundary case that was missed.

  * Fixed small unrelated javadoc typo.

Changed paths

Path Details
Directorylucene/java/trunk/CHANGES.txt modified , text changed
Directorylucene/java/trunk/src/java/org/apache/lucene/index/IndexReader.java modified , text changed
Directorylucene/java/trunk/src/java/org/apache/lucene/index/SegmentMerger.java modified , text changed
Directorylucene/java/trunk/src/java/org/apache/lucene/util/BitVector.java modified , text changed
Directorylucene/java/trunk/src/test/org/apache/lucene/index/TestIndexReader.java modified , text changed

infrastructure at apache.org
ViewVC Help
Powered by ViewVC 1.1.26