Per discussion. It was just an alias for `ping`.
$maindbh->commit();
## Only certain things can be changed "on the fly"
- for my $val (qw/checksecs stayalive do_listen deletemethod status ping
+ for my $val (qw/checksecs stayalive deletemethod status ping
analyze_after_copy vacuum_after_copy targetgroup targetdb
onetimecopy lifetimesecs maxkicks rebuild_index/) {
$sync->{$syncname}{$val} = $self->{sync}{$syncname}{$val} = $info->{$val};
} ## end each goat
## If pinging, listen for a triggerkick on all source databases
- if ($s->{ping} or $s->{do_listen}) {
+ if ($s->{ping}) {
my $l = "kick_sync_$syncname";
for my $dbname (sort keys %{ $self->{sdb} }) {
$x = $self->{sdb}{$dbname};
$x->{dbh} ||= $self->connect_database($dbname);
$x->{dbh}->commit();
- if ($s->{ping} or $s->{do_listen}) {
+ if ($s->{ping}) {
my $l = "kick_sync_$syncname";
$self->db_unlisten($x->{dbh}, $l, $dbname, 0);
$x->{dbh}->commit();
stayalive stayalive TF null
kidsalive kidsalive TF null
ping ping TF null
- do_listen do_listen TF null
checktime checktime interval null
status status =active|inactive null
source_makedelta source_makedelta =inherits|on|off null
}
## Should be 'yes' or 'no'
- for (qw/analyze_after_copy vacuum_after_copy stayalive kidsalive ping do_listen/) {
+ for (qw/analyze_after_copy vacuum_after_copy stayalive kidsalive ping/) {
$s->{$_} = (defined $s->{$_} and $s->{$_}) ? 'yes' : 'no ';
}
['bucardo', 'sync', 'limitdbs'],
['bucardo', 'goat', 'customselect'],
['bucardo', 'sync', 'usecustomselect'],
+ ['bucardo', 'sync', 'do_listen'],
);
my @altered_columns = (
Boolean indicating whether or not to ping each database before each sync.
Optional.
-=item C<do_listen>
-
-XXX An alias for C<ping>?
-
=item C<checktime>
An interval specifying's the maximum time a sync should go before being
copyextra TEXT NOT NULL DEFAULT '', -- e.g. WITH OIDS
deletemethod TEXT NOT NULL DEFAULT 'delete',
ping BOOLEAN NOT NULL DEFAULT true, -- Are we issuing NOTICES via triggers?
- do_listen BOOLEAN NOT NULL DEFAULT false, -- LISTEN for kicks on source/target database if ! ping
checktime INTERVAL NULL, -- How often to check if we've not heard anything?
status TEXT NOT NULL DEFAULT 'active', -- Possibly CHECK / FK ('stopped','paused','b0rken')
makedelta BOOLEAN NULL,