[erlang-bugs] [PATCH] Prefer details in cdv_ets_cb:init_gen_page/2

Dan Gudmundsson dangud@REDACTED
Mon Oct 12 15:10:45 CEST 2015


I think this patch is better..

diff --git a/lib/observer/src/crashdump_viewer.erl
b/lib/observer/src/crashdump_viewer.erl
index f2ce51b..b66b4d5 100644
--- a/lib/observer/src/crashdump_viewer.erl
+++ b/lib/observer/src/crashdump_viewer.erl
@@ -1572,7 +1572,7 @@ get_etsinfo(Fd,EtsTable = #ets_table{details=Ds},WS)
->
            get_etsinfo(Fd,EtsTable#ets_table{details=Ds#{fixed=>Val}},WS);
        "Type" ->
            Val = val(Fd),
-
get_etsinfo(Fd,EtsTable#ets_table{details=Ds#{data_type=>Val}},WS);
+           get_etsinfo(Fd,EtsTable#ets_table{data_type=Val},WS);
        "Protection" ->
            Val = val(Fd),

get_etsinfo(Fd,EtsTable#ets_table{details=Ds#{protection=>Val}},WS);



On Fri, Oct 9, 2015 at 3:59 AM Leo Liu <sdl.web@REDACTED> wrote:

> Hi,
>
> When viewing the details page of an ETS table in crashdump_viewer, it
> always shows the `data structure' as `hash'. Could someone see if this
> is an oversight and the following patch is intended? Thanks.
>
> Leo
>
> _______________________________________________
> erlang-bugs mailing list
> erlang-bugs@REDACTED
> http://erlang.org/mailman/listinfo/erlang-bugs
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-bugs/attachments/20151012/aa8b7c9a/attachment.htm>


More information about the erlang-bugs mailing list