[Bps-public-commit] r16758 - in Prophet/branches/init-and-clone: lib/Prophet/CLI/Command
sartak at bestpractical.com
sartak at bestpractical.com
Sat Nov 8 01:19:58 EST 2008
Author: sartak
Date: Sat Nov 8 01:19:58 2008
New Revision: 16758
Modified:
Prophet/branches/init-and-clone/ (props changed)
Prophet/branches/init-and-clone/lib/Prophet/CLI/Command/Clone.pm
Log:
r75196 at onn: sartak | 2008-11-08 01:19:46 -0500
Need to set db defaults if we're cloning from a foreign replica
Modified: Prophet/branches/init-and-clone/lib/Prophet/CLI/Command/Clone.pm
==============================================================================
--- Prophet/branches/init-and-clone/lib/Prophet/CLI/Command/Clone.pm (original)
+++ Prophet/branches/init-and-clone/lib/Prophet/CLI/Command/Clone.pm Sat Nov 8 01:19:58 2008
@@ -25,7 +25,10 @@
}
my %init_args;
- unless ($source->isa('Prophet::ForeignReplica')) {
+ if ($source->isa('Prophet::ForeignReplica')) {
+ $target->after_initialize( sub { shift->app_handle->set_db_defaults } );
+ }
+ else {
%init_args = (
db_uuid => $source->db_uuid,
resdb_uuid => $source->resolution_db_handle->db_uuid,
More information about the Bps-public-commit
mailing list