redbug icon indicating copy to clipboard operation
redbug copied to clipboard

redbug_dtop: don't crash on mnesia ext tables

Open mikpe opened this issue 2 years ago • 0 comments

If you try to run redbug:dtop() in a system with mnesia ext tables, it crashes with a badarith because redbug_dtop:ets_size/1 multiplies the atom undefined with an integer.

This happens because get_term_storage_type/1 defaults to ets for not explicitly matched storage types. This is wrong for e.g. ext LevelDB tables: only disc_copies should be mapped to ets.

Also change the type marker remote_only to undefined to better match its semantics (anything dtop doesn't know how to handle).

mikpe avatar Dec 12 '23 14:12 mikpe