<p>Explicitly disconnect after perfoming the schema version check. Without doing so, Schema::Versioned is leaving an idle connection open to the database in daemon processes. This results in twice the expected number of active connections opened to the database. </p>
<p>Please let me know if you need addtional information or would prefer a different approach in order to accept the pull request.</p>
<hr>
<h4>You can merge this Pull Request by running</h4>
<pre> git pull https://github.com/jeneric/dbix-class em-schema-check-disconnect</pre>
<p>Or view, comment on, or merge it at:</p>
<p> <a href='https://github.com/dbsrgits/dbix-class/pull/57'>https://github.com/dbsrgits/dbix-class/pull/57</a></p>
<h4>Commit Summary</h4>
<ul>
<li>Disconnect after schema version check.</li>
</ul>
<h4>File Changes</h4>
<ul>
<li>
<strong>M</strong>
<a href="https://github.com/dbsrgits/dbix-class/pull/57/files#diff-0">lib/DBIx/Class/Schema/Versioned.pm</a>
(3)
</li>
</ul>
<h4>Patch Links:</h4>
<ul>
<li><a href='https://github.com/dbsrgits/dbix-class/pull/57.patch'>https://github.com/dbsrgits/dbix-class/pull/57.patch</a></li>
<li><a href='https://github.com/dbsrgits/dbix-class/pull/57.diff'>https://github.com/dbsrgits/dbix-class/pull/57.diff</a></li>
</ul>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/dbsrgits/dbix-class/pull/57">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/302594__eyJzY29wZSI6Ik5ld3NpZXM6QmVhY29uIiwiZXhwaXJlcyI6MTcyNDU1NTQ3MCwiZGF0YSI6eyJpZCI6NDA1Mzc4OTd9fQ==--ed40c485188913df57c3e326b587cf0c7ecee645.gif" width="1" /></p>