On 7/26/07, Adam Herzog <[EMAIL PROTECTED]> wrote:
If a request comes in while the database is down, dbic tries to
reconnect and fails (of course). But, further requests don't try and
connect to the db anymore after the initial failure. So, once the
database IS available again, dbic isn't reconnecting anymore, just
failing (with "Can't call method "prepare_cached" on unblessed
reference at /Library/Perl/5.8.6/DBIx/Class/Storage/DBI.pm line 1086.")

So... is this a bug, where dbic should be trying to reconnect after
the initial failure? Or, is that expected behavior for some reason?

Any suggestions on what I can do, either to help update DBIC, or to
handle the situation in my own code?

Can you try the attached patch (it's a patch against trunk, not sure
if it needs fuzz for 0.08003)?

-- Brandon

Attachment: storage.patch
Description: Binary data

_______________________________________________
List: http://lists.rawmode.org/cgi-bin/mailman/listinfo/dbix-class
Wiki: http://dbix-class.shadowcatsystems.co.uk/
IRC: irc.perl.org#dbix-class
SVN: http://dev.catalyst.perl.org/repos/bast/trunk/DBIx-Class/
Searchable Archive: http://www.mail-archive.com/dbix-class@lists.rawmode.org/

Reply via email to