cabol / shards

Partitioned ETS tables for Erlang and Elixir

Home Page:https://hexdocs.pm/shards

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Operation of the shards:info/2 does not match

voluntas opened this issue · comments

commented

Thank you for a nice library.

This is to report that the shards:info/2 is different from the ets:info/2 behavior.

> shards:info(mytab, name).
** exception error: bad argument
     in function  ets:lookup_element/3
        called as ets:lookup_element(mytab,'$shards_state',2)
...
> ets:info(mytab, name).
undefined

@voluntas thanks for the report, I'll take a look at it!!

Fixed, checkout the master branch. Let me know if everything is ok now.

Note: This is the commit: e78edc4.

commented

Now it works as expected. Thank you!