mirror of
https://github.com/simon987/sist2.git
synced 2025-12-16 08:49:07 +00:00
Bug fix for delete iterator
This commit is contained in:
@@ -322,7 +322,6 @@ void sist2_index(index_args_t *args) {
|
||||
}
|
||||
|
||||
free(iterator);
|
||||
database_close(db, FALSE);
|
||||
|
||||
if (!args->print) {
|
||||
database_iterator_t *del_iter = database_create_delete_list_iterator(db);
|
||||
@@ -330,8 +329,11 @@ void sist2_index(index_args_t *args) {
|
||||
delete_document(id);
|
||||
free(id);
|
||||
}
|
||||
free(del_iter);
|
||||
}
|
||||
|
||||
database_close(db, FALSE);
|
||||
|
||||
tpool_wait(IndexCtx.pool);
|
||||
tpool_destroy(IndexCtx.pool);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user