Skip to content

Commit

Permalink
Merge pull request #1312 from xiaoyifang/opt/fts-last-pos
Browse files Browse the repository at this point in the history
opt: the address maybe not ordered
  • Loading branch information
xiaoyifang authored Dec 6, 2023
2 parents fc62d11 + df594e0 commit b148ed1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ftshelpers.cc
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,9 @@ void makeFTSIndex( BtreeIndexing::BtreeDictionary * dict, QAtomicInt & isCancell
for ( auto const & address : offsets ) {
indexedDoc++;

if ( address > lastAddress && skip ) {
if ( address == lastAddress && skip ) {
skip = false;
continue;
}
//skip until to the lastAddress;
if ( skip ) {
Expand Down

0 comments on commit b148ed1

Please sign in to comment.