- Timestamp:
- 09/02/09 00:01:53 (4 years ago)
- Files:
-
- trunk/perl/lib/Cornea.pm (modified) (1 diff)
- trunk/perl/lib/Cornea/ApacheStore.pm (modified) (1 diff)
- trunk/perl/lib/Cornea/StorageNode.pm (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/perl/lib/Cornea.pm
r50 r52 71 71 } 72 72 else { 73 print STDERR "Failed copy to " . $n->fqdn . "\n " if $main::DEBUG;73 print STDERR "Failed copy to " . $n->fqdn . "\n$data\n" if $main::DEBUG; 74 74 $T->remove($n); 75 75 } trunk/perl/lib/Cornea/ApacheStore.pm
r49 r52 76 76 my $code = $curl->getinfo(CURLINFO_HTTP_CODE); 77 77 $errbuf = "copy from source: $code" unless $code == 200; 78 $errbuf = "zero length file\n" if -z $path; 79 if ($code == 200 and -e $path and not -z $path) { 78 if ($code == 200 and -e $path) { 80 79 $copied = 1; 81 80 last; trunk/perl/lib/Cornea/StorageNode.pm
r50 r52 96 96 $curl->setopt(CURLOPT_URL, $url); 97 97 $curl->setopt(CURLOPT_HTTPHEADER, [ "X-Cornea-Node: $ips" ]); 98 print STDERR "COPY $url (X-Cornea-Node: $ips)\n" if $main::DEBUG; 98 99 $curl->setopt(CURLOPT_CUSTOMREQUEST, "COPY"); 99 100 $curl->setopt(CURLOPT_FILE, \$response_data);
