emqx / mria

Asynchronously replicated Mnesia-like database for Erlang/Elixir
https://www.emqx.com
Apache License 2.0
120 stars 23 forks source link

fix: insert replicants into membership table #166

Closed thalesmg closed 1 year ago

thalesmg commented 1 year ago

After recent fixes where replicants are no longer returned in legacy membership API functions, there's no longer a need to prevent them from being inserted into the membership table. In fact, there's also an inconsistency where sometimes they don't get inserted when there's a single core in the cluster, but they do when there's more than one core. This removes the check that prevented replicants from being inserted.