<div dir="ltr">Hi Eric,<br><div class="gmail_extra">did you test with the latest dev release of DBIC?<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Aug 26, 2014 at 6:37 AM, Peter Rabbitson <span dir="ltr">&lt;<a href="mailto:notifications@github.com" target="_blank">notifications@github.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p>First of all many thanks for the time looking into this! I would however like for you to look deeper into the issue. The current behavior seems wrong in itself, therefore the result is you adding a bandaid fixing something that should not have been there in the first place.</p>



<p>The problem on the table is: we are connecting twice.<br>
The correct question isn&#39;t &quot;why aren&#39;t we disconnecting&quot;,  but rather &quot;why are we connecting twice?!&quot;</p>

<p>The solution would lie in examining the ::Versioned code and determining whether any of the -&gt;connect calls have anything special done to their connect attributes. If this is <i>not</i> the case (i.e. we always connect to the same place <i>anyway</i>) - then clearly you are looking into a shared $dbh as can be seen in the <i>second</i> bullet point here: <a href="https://metacpan.org/pod/DBIx::Class::Storage::DBI#connect_info" target="_blank">https://metacpan.org/pod/DBIx::Class::Storage::DBI#connect_info</a>. I will not be available for most of this week, please ask <a href="https://github.com/frioux" target="_blank">@frioux</a> for help if you get stuck and/or have trouble navigating my explanation.</p>

</blockquote><div><br>@Peter: this sounds to me like a consequence of the connection race condition we debugged and fixed some month ago where the wrong connection got the session parameters set but the other one got used.<br>

</div><div> <br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">

<p style="font-size:small;color:#666">—<br>Reply to this email directly or <a href="https://github.com/dbsrgits/dbix-class/pull/57#issuecomment-53374573" target="_blank">view it on GitHub</a>.<img alt="" src="https://github.com/notifications/beacon/302594__eyJzY29wZSI6Ik5ld3NpZXM6QmVhY29uIiwiZXhwaXJlcyI6MTcyNDY0NzA0MiwiZGF0YSI6eyJpZCI6NDA1Mzc4OTd9fQ==--f4df9f758dd08e9a87a90f072e94bc9f34a7e09d.gif" height="1" width="1"></p>

</div></div><br>_______________________________________________<br>
DBIx-Class-Devel mailing list<br>
<a href="mailto:DBIx-Class-Devel@lists.scsys.co.uk">DBIx-Class-Devel@lists.scsys.co.uk</a><br>
<a href="http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class-devel" target="_blank">http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class-devel</a><br>
<br></blockquote></div><br></div></div>