- Better formatting of bucardo.reason.log, and log startup failures. [GSM]
+ - Refuse to start if the bucardo database version does not match that of
+ bucardo_ctl (the former is set by 'bucardo_ctl upgrade') [GSM]
+
Bucardo version 4.4.0, released October 14, 2009
- Allow validate_goat() to work correctly against pgbouncer databases by
exit 1;
}
+ my $dbversion = get_config('bucardo_current_version') or die "Could not find Bucardo version!\n";
+ if ($dbversion ne $VERSION) {
+ $nouns = "Version mismatch: bucardo_ctl is $VERSION, but bucardo database is $dbversion\n";
+ append_reason_file('fail');
+ warn $nouns;
+ warn "Perhaps you need to run 'bucardo_ctl upgrade' ?\n";
+ exit 1;
+ }
+
## Create a new Bucardo instance and connect to its database
require Bucardo;
my $bc = Bucardo->new($bcargs);