6 |
## |
## |
7 |
## ---------------------------------------------------------------------------------------- |
## ---------------------------------------------------------------------------------------- |
8 |
## $Log$ |
## $Log$ |
9 |
|
## Revision 1.5 2003/02/20 20:24:33 joko |
10 |
|
## + additional pre-flight checks |
11 |
|
## |
12 |
## Revision 1.4 2003/02/14 14:14:38 joko |
## Revision 1.4 2003/02/14 14:14:38 joko |
13 |
## + new code refactored here |
## + new code refactored here |
14 |
## |
## |
133 |
my $ident = shift; |
my $ident = shift; |
134 |
my $force = shift; |
my $force = shift; |
135 |
|
|
136 |
|
=pod |
137 |
|
#print "isa: ", UNIVERSAL::isa($self->{meta}->{$descent}->{storage}), "\n"; |
138 |
|
|
139 |
|
# this seems to be the first time we access this side, |
140 |
|
# so just check (again) for a valid storage handle |
141 |
|
if (! ref $self->{meta}->{$descent}->{storage}) { |
142 |
|
$logger->critical( __PACKAGE__ . "->_statloadNode( descent=$descent ident=$ident ): Storage handle undefined!" ); |
143 |
|
return; |
144 |
|
} |
145 |
|
=cut |
146 |
|
|
147 |
#$logger->debug( __PACKAGE__ . "->_statloadNode( descent=$descent ident=$ident )" ); |
#$logger->debug( __PACKAGE__ . "->_statloadNode( descent=$descent ident=$ident )" ); |
148 |
|
|
149 |
# fetch entry to retrieve checksum from |
# fetch entry to retrieve checksum from |
251 |
next; |
next; |
252 |
} |
} |
253 |
|
|
254 |
|
# 2.b check storage handle type |
255 |
|
my $dbType = $self->{meta}->{$descent}->{storage}->{locator}->{type}; |
256 |
|
if (!$dbType) { |
257 |
|
$logger->critical( __PACKAGE__ . "->touchNodeSet: Storage ( descent='$descent', dbKey='$dbkey' ) has no 'dbType' - configuration-error?" ); |
258 |
|
next; |
259 |
|
} |
260 |
|
|
261 |
# 3. check if descents (and nodes?) are actually available.... |
# 3. check if descents (and nodes?) are actually available.... |
262 |
# TODO: |
# TODO: |
263 |
# eventually pre-check mode of access-attempt (read/write) here to provide an "early-croak" if possible |
# eventually pre-check mode of access-attempt (read/write) here to provide an "early-croak" if possible |
266 |
# print Dumper($self->{meta}->{$descent}->{storage}->{locator}); |
# print Dumper($self->{meta}->{$descent}->{storage}->{locator}); |
267 |
|
|
268 |
|
|
|
my $dbType = $self->{meta}->{$descent}->{storage}->{locator}->{type}; |
|
269 |
my $nodeName = $self->{meta}->{$descent}->{nodeName}; |
my $nodeName = $self->{meta}->{$descent}->{nodeName}; |
270 |
my $accessorType = $self->{meta}->{$descent}->{accessorType}; |
my $accessorType = $self->{meta}->{$descent}->{accessorType}; |
271 |
my $accessorName = $self->{meta}->{$descent}->{accessorName}; |
my $accessorName = $self->{meta}->{$descent}->{accessorName}; |