mirror of https://github.com/apache/lucene.git
fix addUnique and corrupt size in BitDocSet
git-svn-id: https://svn.apache.org/repos/asf/incubator/solr/trunk@412524 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
8226476315
commit
3c7c44fc11
|
@ -85,8 +85,8 @@ public class BitDocSet extends DocSetBase {
|
||||||
}
|
}
|
||||||
|
|
||||||
public void addUnique(int doc) {
|
public void addUnique(int doc) {
|
||||||
size++;
|
|
||||||
bits.set(doc);
|
bits.set(doc);
|
||||||
|
size=-1; // invalidate size
|
||||||
}
|
}
|
||||||
|
|
||||||
public int size() {
|
public int size() {
|
||||||
|
|
Loading…
Reference in New Issue