Remove useless todo. (#13589)

This commit is contained in:
zhouhui 2024-07-19 16:12:52 +08:00 committed by GitHub
parent b42fd8e479
commit c245ed2fb4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 0 additions and 2 deletions

View File

@ -85,8 +85,6 @@ public class PerThreadPKLookup {
if (termsEnums[seg].seekExact(id)) { if (termsEnums[seg].seekExact(id)) {
postingsEnums[seg] = termsEnums[seg].postings(postingsEnums[seg], 0); postingsEnums[seg] = termsEnums[seg].postings(postingsEnums[seg], 0);
int docID = -1; int docID = -1;
// TODO: Can we get postings' last Doc directly? and return the last one we find.
// TODO: Maybe we should check liveDoc whether null out of the loop?
while ((docID = postingsEnums[seg].nextDoc()) != PostingsEnum.NO_MORE_DOCS) { while ((docID = postingsEnums[seg].nextDoc()) != PostingsEnum.NO_MORE_DOCS) {
if (liveDocs[seg] == null || liveDocs[seg].get(docID)) { if (liveDocs[seg] == null || liveDocs[seg].get(docID)) {
return docBases[seg] + docID; return docBases[seg] + docID;