opt: the address maybe not ordered

should not use equal( == ) comparision
This commit is contained in:
YiFang Xiao 2023-12-06 14:40:17 +08:00
parent 9c5e25971b
commit df594e0108

View file

@ -116,8 +116,9 @@ void makeFTSIndex( BtreeIndexing::BtreeDictionary * dict, QAtomicInt & isCancell
for ( auto const & address : offsets ) { for ( auto const & address : offsets ) {
indexedDoc++; indexedDoc++;
if ( address > lastAddress && skip ) { if ( address == lastAddress && skip ) {
skip = false; skip = false;
continue;
} }
//skip until to the lastAddress; //skip until to the lastAddress;
if ( skip ) { if ( skip ) {