-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adapt to new Hammer API #36
base: master
Are you sure you want to change the base?
Conversation
|
||
case :mnesia.create_table(table, mnesia_opts) do | ||
{:atomic, :ok} -> :ok | ||
{:aborted, {:already_exists, _}} -> :ok |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure what to do about this. Technically we should raise, but raising here would bring down the supervisor and then the whole application since it would hit 5 restarts per 3 seconds very quickly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I mean if you can t start it and is needed that seems like an issue?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's not what this is about. What you are asking about is probably the next line below that one, 129.
This is about a table that might exist but have a different structure.
16f7fcf
to
b6372f7
Compare
b6372f7
to
84e5b8a
Compare
Context: ExHammer/hammer#104
It's kind of hard to get the distributed configuration right. It should probably be documented. I'll play around with Mnesia on the weekend and maybe update the README with a working ram_copies setup. But I think this PR is good to go. The previous version wasn't distributed by default either.