Skip to content

Commit 115904a

Browse files
committed
Fixed issue with indexer
1 parent df23d32 commit 115904a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sfts.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ static int remove_docid_in_word(sfts * index, std::string word, uint64_t doc)
377377
std::string buffer;
378378
size_t position = 0;
379379
position = kv_decode_uint64(str, position, &wordid);
380-
while (position < buffer.size()) {
380+
while (position < str.size()) {
381381
uint64_t current_docid;
382382
position = kv_decode_uint64(str, position, &current_docid);
383383
if (current_docid != doc) {

0 commit comments

Comments
 (0)