--- nfo/perl/libs/Data/Storage/Container.pm 2003/01/30 21:44:00 1.6 +++ nfo/perl/libs/Data/Storage/Container.pm 2003/01/30 22:21:52 1.7 @@ -1,8 +1,12 @@ ################################################ # -# $Id: Container.pm,v 1.6 2003/01/30 21:44:00 joko Exp $ +# $Id: Container.pm,v 1.7 2003/01/30 22:21:52 joko Exp $ # # $Log: Container.pm,v $ +# Revision 1.7 2003/01/30 22:21:52 joko +# + changed 'connect'-behaviour back to old state +# + renamed log-output (now using 'initializing' instead of 'booting' - corresponding to 'initStorage') +# # Revision 1.6 2003/01/30 21:44:00 joko # + temporary fix: (FIXME) now connecting to storage on storagehandle-instantiation # @@ -151,12 +155,12 @@ my $name = shift; my $locator = $self->getLocator($name); - $logger->info( __PACKAGE__ . " is booting storage declared by locator \"$name\"" ); + $logger->info( __PACKAGE__ . " is initializing storage declared by locator \"$name\"" ); my $storage = Data::Storage->new($locator); # TODO: do below (after 'testAvailability' and 'testIntegrity') again!!! - $storage->connect(); + #$storage->connect(); my $log_prefix = __PACKAGE__ . "->initStorage: "; $log_prefix .= "dsn=\"$self->{locator}->{$name}->{dsn}\"" if $self->{locator}->{$name}->{dsn}; @@ -184,7 +188,7 @@ # don't connect right here, do an implicit connect on (later) usage # maybe set ->{meta}->{connectmethod} = "connect" here #return unless $storage->connect(); - #$storage->connect() if $locator->{status}->{integrity}; + $storage->connect() if $locator->{status}->{integrity}; # should we check emptyness? if ($locator->{status}->{availability} && $locator->{test_emptyness}) {