/[cvs]/nfo/perl/libs/Data/Transfer/Sync/StorageInterface.pm
ViewVC logotype

Diff of /nfo/perl/libs/Data/Transfer/Sync/StorageInterface.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.4 by joko, Fri Feb 14 14:14:38 2003 UTC revision 1.5 by joko, Thu Feb 20 20:24:33 2003 UTC
# Line 6  Line 6 
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  ##  ##
# Line 130  sub _statloadNode { Line 133  sub _statloadNode {
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
# Line 237  sub _touchNodeSet { Line 251  sub _touchNodeSet {
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
# Line 245  sub _touchNodeSet { Line 266  sub _touchNodeSet {
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};

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

MailToCvsAdmin">MailToCvsAdmin
ViewVC Help
Powered by ViewVC 1.1.26 RSS 2.0 feed