Daniel Nichter
dab2e5c692
Add NAME_lc arg to Cxn to prevent it from being set. Use Cxn in pt-kill to retry lost connections. Add support for pt-kill DSN.
2012-07-12 13:52:52 -06:00
Brian Fraser fraserb@gmail.com
e57b67f10e
Cxn & pt-osc: Guard the cleanup tasks.
...
Does this twofold: By adding a __DIE__ hook to make sure they are
called, and by checking that the dbh is an actual database handle.
2012-06-05 16:24:32 -03:00
Brian Fraser fraserb@gmail.com
b007016215
lib/Cxn.pm: Silence a warning (in 5.14)
...
I think this warning actually happens everywhere, but because of
how it happens, it gets masked by older versions of Perl.
Basically, Cxn's DESTROY method checks if $self->{dbh}, and if true,
calls ->disconnect on that. However, during global destruction --
when DESTROY is called -- you have no assurances that DESTROY
will be called before the dbh was already reaped.
This commit makes sure that the $self->{dbh} we have inside DESTROY
is actually a reference.
2012-03-30 16:03:04 -03:00
Daniel Nichter
88304e69fb
Replace MKDEBUG with PTDEBUG in modules.
2012-01-19 12:46:56 -07:00
Daniel Nichter
1d8da408fc
Revert to r243 to undo pt-table-sync changes.
2011-12-22 12:06:25 -07:00
Daniel Nichter
457fa70668
Fix TableSyncer trace msg, implement --explain, fix locking/committing. Add aux dbh, dbh opts, and disconnect() to Cxn.
2011-12-21 21:12:03 -07:00
Daniel Nichter
c4db7c0633
Test and fix very small --chunk-time. Report immediately when a slave is stopped. Add short form -q for --quiet. Report very slow checksums once for each table. Use Cxn::name() instead of Cxn::dsn()->{n}; remove n from DSNParser; make cxn's name @@hostname by default, else stringified DSN parts.
2011-10-19 11:27:19 -06:00
Daniel Nichter
e08719ac4a
Fix timestamp. Make DSNs inherit from master DSN.
2011-10-17 11:41:02 -06:00
Daniel Nichter
48fb4baa7c
Use 'h=localhost' if no DSN or DSN options given. Remove unused DSN parts (D and t) and don't copy some parts. Move issue_947.t tests into standard_options.t and remove issue_947.t.
2011-10-14 07:59:43 -06:00
Daniel Nichter
b2f92391a7
Fatal error if slave dies. Make Cxn::connect() if dbh id dead. Sort slave lag properly and use Cxn instead of dbh in ReplicaLagWaiter. Check master cxn before keepalive. Sleep N+0.25 waiting for chunks.
2011-10-10 10:56:08 -06:00
Daniel Nichter
31256a9e49
Add set callback to Cxn, docu module, and only ask for pass once.
2011-10-07 10:35:28 -06:00
Daniel Nichter
e2e40488c5
Add Cxn.pm. Make MasterSlave, NibbleIterator, and ReplicaLagWaiter use Cxn. Rewrite, simplify Retry.
2011-10-06 12:47:35 -06:00