Daniel Nephin 810424a61e state: do not delete from inside an iteration
Deleting from memdb inside an interation can cause a panic from Iterator.Next. This
case is technically safe (for now) because the iterator is using the root radix tree
not a modified one.

However this could break at any time if someone adds an insert or delete to the coordinates table
before this place in the function.

It also sets a bad example, because generally deletes in an interator are not safe. So this
commit uses the pattern we have in other places to move the deletes out of the iteration.
2021-01-19 17:00:07 -05:00
..
2020-12-07 13:42:55 -05:00
2021-01-07 18:47:38 -05:00
2021-01-07 18:47:38 -05:00
2021-01-07 18:13:48 -05:00
2020-11-17 18:16:26 -05:00
2021-01-07 18:47:38 -05:00
2020-11-16 11:02:11 -08:00
2020-06-16 13:21:11 -04:00