[wp-trac] [WordPress Trac] #5932: wpdb should reconnect and retry query when "MySQL server has gone away"
WordPress Trac
noreply at wordpress.org
Tue Sep 24 18:32:19 UTC 2013
#5932: wpdb should reconnect and retry query when "MySQL server has gone away"
-----------------------------+-----------------------
Reporter: dtc | Owner: pento
Type: enhancement | Status: assigned
Priority: normal | Milestone: 3.7
Component: Database | Version: 3.0
Severity: normal | Resolution:
Keywords: has-patch early |
-----------------------------+-----------------------
Comment (by nacin):
I'm noticing in [attachment:5932.diff] that there is a `return false` when
the connection fails. But it's possible that the bail() doesn't result in
a wp_die(). Then $wpdb->last_error isn't set, $wpdb->insert_id isn't
reset, and we have various potential problems. How exactly should this
work?
--
Ticket URL: <http://core.trac.wordpress.org/ticket/5932#comment:22>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list