elixir-ecto / db_connection

Database connection behaviour
http://hexdocs.pm/db_connection/DBConnection.html
309 stars 112 forks source link

Checkin previous connections when setting ownership mode to shared #97

Closed josevalim closed 7 years ago

josevalim commented 7 years ago

This fixes a bug where processes started before the ownership mode is set to shared holds on to the previous connection, causing confusion.

See #96

jerel commented 6 years ago

I ran into an issue where contexts called from Phoenix channels were not caught by the sandbox (the repo they are using is in another umbrella app). Restarting the web app in the test setup fixes the issue but it seems like the sort of thing that could surprise a few people. Maybe it's time for a patch release?

fishcakez commented 6 years ago

This is part of master which is for v2.0 unfortunately. We might be able to backport though.