El Sábado, 5 de Septiembre de 2009, Iñaki Baz Castillo escribió:
I'm 90% sure that this is the problem: > - Now I stop MySQL. A new request arrives: > > D 2009-09-05 01:00:35 [6441] DEBUG : DB: ps_get_document.call Here I've called a ps.call while MySQL was down and I receive a "Mysql::Error" exception (here the problem is). > F 2009-09-05 01:00:35 [6441] FATAL : Mysql::Error: Can't connect to local > MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) > > > - I rescue the error (any error for now) so call again to DB.set: By doing it, I'm calling to Sequel.connect and create again the PS. > I 2009-09-05 01:00:35 [6441] INFO : Setting DB prepared > staments D > 2009-09-05 01:00:35 [6441] DEBUG : DB: ds_get_document.prepare > I 2009-09-05 01:00:35 [6441] INFO : Done > > > - MySQL still down and a new request arrives: Now MySQL is down, but since before we have called Sequel.call and also have re-created the prepared stament, then we get a Sequel::DatabaseConnectionError: > D 2009-09-05 01:00:44 [6441] DEBUG : DB: ps_get_document.call > F 2009-09-05 01:00:44 [6441] FATAL : Sequel::DatabaseConnectionError: > Mysql::Error Can't connect to local MySQL server through socket > '/var/run/mysqld/mysqld.sock' (2) So the bug must be when calling ps#call being the MySQL down :) AmI right? -- Iñaki Baz Castillo <[email protected]> --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sequel-talk" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/sequel-talk?hl=en -~----------~----~----~----~------~----~------~--~---
