Use `mnesia:foldl` to traverse mnesia rather than `mnesia:first` and `mnesia:next`, as a badarg exception would occur if the record was deleted while travering the whole table. |
||
|---|---|---|
| .. | ||
| emqx.hrl | ||
| emqx_mqtt.hrl | ||
Use `mnesia:foldl` to traverse mnesia rather than `mnesia:first` and `mnesia:next`, as a badarg exception would occur if the record was deleted while travering the whole table. |
||
|---|---|---|
| .. | ||
| emqx.hrl | ||
| emqx_mqtt.hrl | ||