HF RL Explorer

db traverse() skips entries when a callback deletes items during iteration

db traverse() skips entries when a callback deletes items during iteration: a task in LegoFlow-SWE (Harbor dataset). When db traverse() iterates over a sys db table, the traversal callback may delete the current entry. This causes the iterator to skip subsequent entries, because the underlying…

The task

When `db_traverse()` iterates over a `sys_db` table, the traversal callback may delete the current entry. This causes the iterator to skip subsequent entries, because the underlying iteration mechanism (`vos_iterate`) is not informed that a deletion occurred.

Part of Lego-X/LegoFlow-SWE.