rel->indexlist = list_delete_cell(rel->indexlist, cell);
/*
- * the elements after cell moved to the list head by 1 element.
- * the next iteration should visit the cell at the same address if
- * any.
+ * The cells after the deleted cell have been moved towards the
+ * list head by 1 element. the next iteration should visit the
+ * cell at the same address if any.
*/
if (next)
next = cell;
{
hstate->join_hint_level[i] =
list_delete_cell(hstate->join_hint_level[i], l);
+ /*
+ * The cells after the deleted cell have been moved
+ * towards the list head by 1 element. the next
+ * iteration should visit the cell at the same address
+ * if any.
+ */
+ if (next)
+ next = l;
}
}
}