dannote / mod-ndb

Automatically exported from code.google.com/p/mod-ndb
0 stars 0 forks source link

Handle ALTER TABLE without a restart #36

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Currently, you must restart Apache after an ALTER TABLE command, or mod_ndb 
will fail to access 
the changed table.

Original issue reported on code.google.com by john.david.duncan on 3 Sep 2007 at 5:30

GoogleCodeExporter commented 9 years ago

Original comment by john.david.duncan on 3 Sep 2007 at 5:30

GoogleCodeExporter commented 9 years ago
mysqld (in ha_ndbcluster.cc) checks for table->getObjectStatus() == 
NdbDictionary::Object::Invalid

Original comment by john.david.duncan on 11 Sep 2007 at 11:44

GoogleCodeExporter commented 9 years ago
There's the "forced graceful restart" strategy:

if (getObjectStatus() == NdbDictionary::Object::Invalid) {
   send SIGUSR1 to your own pid.
}

Original comment by john.david.duncan on 13 Sep 2007 at 12:23

GoogleCodeExporter commented 9 years ago

Original comment by john.david.duncan on 25 Sep 2007 at 6:17