Update changes and serial num after loop.
@@ -1191,9 +1191,9 @@ IndexMaintainer::removeDocuments(LidVector lids, SerialNum serialNum)
_current_index->removeDocument(lid);
_selector->setSource(lid, _current_index_id);
_source_list->setSource(lid);
- ++_source_selector_changes;
- _current_serial_num = serialNum;
}
+ _source_selector_changes += lids.size();
+ _current_serial_num = serialNum;
}
void
